Tuesday, October 21, 2014

Restricting file access to users who uploaded the file.

What is the best way to restrict access of files to specific users. I want to give read access to the user who uploaded the files. 
In the normal django implementation there seems to be no way to restrict access to file uploads in MEDIA_ROOT. What's the best way to achieve this? Ideally I would also like to send files to S3 and restrict access in the cloud as well. 

Thanks for your help.

--
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/2a996d6f-e450-470c-be57-51a6e17eddc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment