Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8188 closed (fixed)

file_move_safe not imported in storage.py

Reported by: arne Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords: upload, filestorage
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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.

Change History (2)

comment:1 Changed 7 years ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to fixed
  • Status changed from new to closed

Fixed [8262].

comment:2 Changed 4 years ago by jacob

  • milestone 1.0 beta deleted

Milestone 1.0 beta deleted

Note: See TracTickets for help on using tickets.
Back to Top