mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #30004 -- Changed default FILE_UPLOAD_PERMISSION to 0o644.
This commit is contained in:
committed by
Tim Graham
parent
e7fd69d051
commit
22aab8662f
@@ -284,6 +284,17 @@ Django 3.0, we're removing these APIs at this time.
|
||||
|
||||
* ``django.utils.safestring.SafeBytes`` - Unused since Django 2.0.
|
||||
|
||||
New default value for the ``FILE_UPLOAD_PERMISSIONS`` setting
|
||||
-------------------------------------------------------------
|
||||
|
||||
In older versions, the :setting:`FILE_UPLOAD_PERMISSIONS` setting defaults to
|
||||
``None``. With the default :setting:`FILE_UPLOAD_HANDLERS`, this results in
|
||||
uploaded files having different permissions depending on their size and which
|
||||
upload handler is used.
|
||||
|
||||
``FILE_UPLOAD_PERMISSION`` now defaults to ``0o644`` to avoid this
|
||||
inconsistency.
|
||||
|
||||
Miscellaneous
|
||||
-------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user