Code

Ticket #7653: upload_doc.diff

File upload_doc.diff, 908 bytes (added by julien, 6 years ago)
Line 
1Index: django/docs/upload_handling.txt
2===================================================================
3--- django/docs/upload_handling.txt     (revision 7857)
4+++ django/docs/upload_handling.txt     (working copy)
5@@ -127,7 +127,11 @@
6         into memory. Files larger than ``FILE_UPLOAD_MAX_MEMORY_SIZE``
7         will be streamed to disk.
8         
9-        Defaults to 2.5 megabytes.
10+        Defaults to 2621440, that is 2.5 megabytes. Remember that 1 kilobyte
11+        (KB) is equal to 1024 bytes (that is 2 exponent 10, or ``2**10`` in the
12+        Python language), and 1 megabyte (MB) is 1048576 bytes (that is
13+        ``2**20``). So, for example, here the maximum file size could be set
14+        to 5.2 MB with ``5.2 * 2**20``, or to 450 KB with ``450 * 2**10``.
15         
16     ``FILE_UPLOAD_TEMP_DIR``
17         The directory where uploaded files larger than ``FILE_UPLOAD_TEMP_DIR``