Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I set uppload option to private? #32

Open
kiey opened this issue Sep 1, 2021 · 5 comments
Open

Can I set uppload option to private? #32

kiey opened this issue Sep 1, 2021 · 5 comments

Comments

@kiey
Copy link

kiey commented Sep 1, 2021

Hi, first thanks for the amazing project!

I want to upload my files in private mode, so they are only accessible by my application, is it possible with this backend?

I have checked the documentation and I haven't found anything regarding private mode.

Thanks!

@klis87
Copy link
Owner

klis87 commented Sep 1, 2021

Hi, I am glad you like it!

What do you mean by a private mode? Is this a Django feature, or maybe a Cloudinary feature?

@kiey
Copy link
Author

kiey commented Sep 1, 2021

Hi,
It is a Cloudinary feature, by default files are upload publicly (everybody can access them) if I want to use it as backend on my application I need to have the files only accessible by the application.
To achieve this, a parameter type has to be past with "private" as value.
From the documentation there is this example:
cloudinary.uploader.upload("sample.jpg", type = "private")

From the section Private Assets
https://cloudinary.com/documentation/upload_images

@klis87
Copy link
Owner

klis87 commented Sep 1, 2021

I see, another question, how a given image could be seen then despite being private, is there anything to be done on reading side too?

@kiey
Copy link
Author

kiey commented Sep 2, 2021

I am not sure of what is the specific way of doing it, I should do a bit of testing to understand it. Whenever I have sometime, I will check it out

The information should be here in case you want to give it a look https://cloudinary.com/documentation/control_access_to_media

@klis87
Copy link
Owner

klis87 commented Sep 2, 2021

Ok, thx, so once we know the way to read private cloudinary files, we could think of adding this feature to this library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants