Django

Code

Ticket #8188 (closed: fixed)

Opened 4 months ago

Last modified 4 months ago

file_move_safe not imported in storage.py

Reported by: arne Assigned to: nobody
Milestone: 1.0 beta Component: Uncategorized
Version: SVN Keywords: upload, filestorage
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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.

Attachments

Change History

08/09/08 10:19:31 changed by jacob

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to fixed.
  • needs_tests changed.
  • needs_docs changed.

Fixed [8262].


Add/Change #8188 (file_move_safe not imported in storage.py)




Change Properties
Action