|Reported by:||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
In core/files/storage.py, FILE_UPLOAD_PERMISSIONS is used to set the permissions of created files. It also makes the containing directory if it doesn't exist, but doesn't set the permissions for this directory. One possible patch is attached.
I can imagine cases where one would want the directory permissions to be different from file permissions. I'm not sure how objectional new setting names are.
Change History (9)
comment:1 Changed 6 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Unreviewed → Accepted|
comment:7 Changed 3 years ago by
|Summary:||FILE_UPLOAD_PERMISSIONS used for created files, but not created directories → Add settings.FILE_UPLOAD_DIRECTORY_PERMISSIONS|