Ticket #13857: default-umask-nochange.diff

File default-umask-nochange.diff, 1.2 KB (added by Simon Litchfield, 14 years ago)

Alternatively, add a note to doc to better describe current behaviour

  • docs/topics/http/file-uploads.txt

     
    149149        more information about what these modes mean, see the `documentation for
    150150        os.chmod`_
    151151
    152         If this isn't given or is ``None``, you'll get operating-system
    153         dependent behavior. On most platforms, temporary files will have a mode
    154         of ``0600``, and files saved from memory will be saved using the
    155         system's standard umask.
     152        .. note::
    156153
     154            If this isn't given or is ``None``, you'll get behavior dependent on
     155            both the operating system and the uploaded file size.
     156           
     157            * Files smaller than :setting:`FILE_UPLOAD_MAX_MEMORY_SIZE` will be
     158              written with the system's standard umask, typically 0644.
     159           
     160            * Files larger than :setting:`FILE_UPLOAD_MAX_MEMORY_SIZE` will be
     161              written with the system's standard umask for temporary files,
     162              typically 0600.
     163
    157164        .. warning::
    158165
    159166            If you're not familiar with file modes, please note that the leading
Back to Top