Opened 9 years ago

Closed 8 years ago

Last modified 5 years ago

#5655 closed (fixed)

FileField's _save_FIELD_file method evaluates the directory once for creating the directory, then again for creating the file

Reported by: Chris Beaven Owned by: Marty Alchin
Component: Database layer (models, ORM) Version: master
Severity: Keywords: fs-rf-fixed
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I'm sure there's a more succinct way to say that...

Anyway, the directory should only be calculated once, to avoid potentially creating one time-based upload directory the then attempting to upload to a different directory.

Attachments (1)

5655.patch (1.6 KB) - added by Chris Beaven 9 years ago.

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by Chris Beaven

Attachment: 5655.patch added

comment:1 Changed 9 years ago by Marty Alchin

Keywords: fs-rf added

comment:2 Changed 9 years ago by Marty Alchin

Keywords: fs-rf-fixed added; fs-rf removed

comment:3 Changed 9 years ago by Jacob

Triage Stage: UnreviewedAccepted

comment:4 Changed 8 years ago by Marty Alchin

milestone: 1.0 beta

comment:5 Changed 8 years ago by Marty Alchin

Owner: changed from nobody to Marty Alchin
Status: newassigned

comment:6 Changed 8 years ago by Jacob

Resolution: fixed
Status: assignedclosed

(In [8244]) File storage refactoring, adding far more flexibility to Django's file handling. The new files.txt document has details of the new features.

This is a backwards-incompatible change; consult BackwardsIncompatibleChanges for details.

Fixes #3567, #3621, #4345, #5361, #5655, #7415.

Many thanks to Marty Alchin who did the vast majority of this work.

comment:11 Changed 5 years ago by Jacob

milestone: 1.0 beta

Milestone 1.0 beta deleted

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