views:

790

answers:

1

Hi there,

I wrote a django app, but i have a little problem with the file permissions of the uploads files from a web form.

Baically i can upload a .mp3 file but it always keep chmod 600.

Th container folder has chmod 775, and the umask is set to 022.

I'm in a shared hosting service.

Thanks if any one can give a clue.

+6  A: 

Try this in your settings.py:

FILE_UPLOAD_PERMISSIONS = 0644
Van Gale
Glad to help :)
Van Gale