Saturday, January 31, 2015

Re: Restrict downloading files in Django?

i don't know if this is the best way to do that. But you can create a view that response the file after verify the user credentials. 

The problem is:  once the user knows the urls from file, he can share the url with others.

Its not difficult create an "one time url" to the request to solve this problem.

On Sat, Jan 31, 2015 at 2:52 PM, Robert Rössler <r.rossler96@gmail.com> wrote:
Hello,
what is the best way to restrict downloading files only to authorized users?
I want to let users upload files and let them download them, but restrict downloading other users files.

Thank you

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f67b7248-72e2-4ed9-95b6-66604598bc62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGjPPHksBZ%3Df_wtyyX-NDM4n-XKWi_LsR3q6os1g17xv%3D%3DAbSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment