Opened 14 years ago

Closed 14 years ago

#8021 closed (duplicate)

save_FIELD_file closes tmpfile before moving it

Reported by: Marco Paolini Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords: uploadhandler tmpfile
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


There seems to be a bug in django/db/models/ that prevents files bigger than 2.5 megs to be uploaded.

1) create a model called "SimpleFile" with a FileField
2) register it with the admin site
3) log in the admin app, add a new "SimpleFile" with a file larger than 2.5 megs, SUBMIT

At this point I get an IOError because the tmpfile created by the uploadhandler no longer exists.

I believe the bug lies in file django/db/models/ line 530. If I comment it out everything works and the temp file is deleted correctly.

Change History (1)

comment:1 Changed 14 years ago by Karen Tracey <kmtracey@…>

Resolution: duplicate
Status: newclosed

Sounds like #7683

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