Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#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.

Change History (2)

comment:1 by Jacob, 16 years ago

Resolution: fixed
Status: newclosed

Fixed [8262].

comment:2 by Jacob, 13 years ago

milestone: 1.0 beta

Milestone 1.0 beta deleted

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