#27334: File uploads could rename temporary files rather than copying them
-------------------------------------+-------------------------------------
Reporter: Adam Chidlow | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: File | Version: 1.10
uploads/storage |
Severity: Normal | Resolution: fixed
Keywords: FileField, | Triage Stage: Accepted
TemporaryUploadedFile |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"f734e2d4b2fc4391a4d097b80357724815c1d414" f734e2d]:
{{{
#!CommitTicketReference repository=""
revision="f734e2d4b2fc4391a4d097b80357724815c1d414"
Fixed #27334 -- Allowed FileField to move rather than copy a file.
When a FileField is set to an instance of File that is not also an
instance of FieldFile, pre_save() passes that object as the contents to
Storage.save(). This allows the file to be moved rather than copied
to the upload destination.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27334#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.4519de5d746bf5cb72ee8e5d27423a1e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.