#8188 closed (fixed)
file_move_safe not imported in storage.py
| Reported by: | arne | Owned by: | nobody |
|---|---|---|---|
| Component: | Uncategorized | Version: | dev |
| Severity: | Keywords: | upload, filestorage | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Uploading a File larger than FILE_UPLOAD_MAX_MEMORY_SIZE raises a NameError in storage.py
Exception Type: NameError Exception Value: global name 'file_move_safe' is not defined Exception Location: /Library/Python/2.5/site-packages/django/core/files/storage.py in _save, line 153
Adding
from django.core.files.move import file_move_safe
fixes the problem.
Note:
See TracTickets
for help on using tickets.
Fixed [8262].