I wrote a django app, but i have a little problem with the file permissions of the uploads files from a web form.
Basically I can upload a .mp3 file but it always keep chmod 600.
The container folder has chmod 775, and the umask is set to 022.
I'm in a shared hosting service.
Hope this is useful. The below method can be used. This has 2 other advantages other than resolving permission errors.
Try this in your settings.py if you use Python 2:
In Python 3 octal numbers must start with 0o so the line would be:
For more details see the documentation.