Hi,
I made something similar by creating an Apache AccessHandler.
You can have a look at the code here:
http://www.djangosnippets.org/snippets/62/

You would have to change the permission checking to your needs, but
basically you can do anything you want inside those functions, like
check if the user has rights to the requested filename.

Guyon Morée wrote:
> I'm letting my users upload files to my server through django. The
> filepaths are stored in a table. The files are accessible to my
> webserver for static serving. The only problem i have now is securing
> them.
>
> user A uploads file 1 to /static_files/file1.jpg
> user B uploads file 2 to /static_files/file2.jpg
>
> now, user B can access /static_files/file1.jpg
>
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to