Ticket #7653: upload_doc.diff
File upload_doc.diff, 908 bytes (added by , 16 years ago) |
---|
-
django/docs/upload_handling.txt
127 127 into memory. Files larger than ``FILE_UPLOAD_MAX_MEMORY_SIZE`` 128 128 will be streamed to disk. 129 129 130 Defaults to 2.5 megabytes. 130 Defaults to 2621440, that is 2.5 megabytes. Remember that 1 kilobyte 131 (KB) is equal to 1024 bytes (that is 2 exponent 10, or ``2**10`` in the 132 Python language), and 1 megabyte (MB) is 1048576 bytes (that is 133 ``2**20``). So, for example, here the maximum file size could be set 134 to 5.2 MB with ``5.2 * 2**20``, or to 450 KB with ``450 * 2**10``. 131 135 132 136 ``FILE_UPLOAD_TEMP_DIR`` 133 137 The directory where uploaded files larger than ``FILE_UPLOAD_TEMP_DIR``