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.
From stackoverflow
-
Try this in your settings.py:
FILE_UPLOAD_PERMISSIONS = 0644
Van Gale : Glad to help :)
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.