FileField's _save_FIELD_file method evaluates the directory once for creating the directory, then again for creating the file
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.
Keywords: |
fs-rf-fixed added; fs-rf removed
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Marty Alchin
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
(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.