1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

[3.1.x] Fixed #31821 -- Removed outdated note in FILE_UPLOAD_PERMISSIONS docs.

Follow up to 22aab8662f0368b63f91f2526bdd0532524bc0fe

Backport of 248d03fbe932b0844c628e56dafba334f9e028e4 from master
This commit is contained in:
Harpreet Sharma 2020-07-23 22:18:39 +05:30 committed by Mariusz Felisiak
parent bc75442ebf
commit 3116444559

View File

@ -1540,10 +1540,9 @@ The numeric mode (i.e. ``0o644``) to set newly uploaded files to. For
more information about what these modes mean, see the documentation for more information about what these modes mean, see the documentation for
:func:`os.chmod`. :func:`os.chmod`.
If this isn't given or is ``None``, you'll get operating-system If ``None``, you'll get operating-system dependent behavior. On most platforms,
dependent behavior. On most platforms, temporary files will have a mode temporary files will have a mode of ``0o600``, and files saved from memory will
of ``0o600``, and files saved from memory will be saved using the be saved using the system's standard umask.
system's standard umask.
For security reasons, these permissions aren't applied to the temporary files For security reasons, these permissions aren't applied to the temporary files
that are stored in :setting:`FILE_UPLOAD_TEMP_DIR`. that are stored in :setting:`FILE_UPLOAD_TEMP_DIR`.