| | 234 | # List of upload handler classes to be applied in order. |
|---|
| | 235 | FILE_UPLOAD_HANDLERS = ( |
|---|
| | 236 | 'django.core.files.uploadhandler.MemoryFileUploadHandler', |
|---|
| | 237 | 'django.core.files.uploadhandler.TemporaryFileUploadHandler', |
|---|
| | 238 | ) |
|---|
| | 239 | |
|---|
| | 240 | # Maximum size, in bytes, of a request before it will be streamed to the |
|---|
| | 241 | # file system instead of into memory. |
|---|
| | 242 | FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB |
|---|
| | 243 | |
|---|
| | 244 | # Directory in which upload streamed files will be temporarily saved. A value of |
|---|
| | 245 | # `None` will make Django use the operating system's default temporary directory |
|---|
| | 246 | # (i.e. "/tmp" on *nix systems). |
|---|
| | 247 | FILE_UPLOAD_TEMP_DIR = None |
|---|
| | 248 | |
|---|