Model save() method needs a way to tell if a file upload occurred
|Reported by:||Eric Woudenberg||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This concerns editing objects from Django's admin interface that have FileFields.
Django's FileField handles uploading conveniently, but as far as I can tell does not allow you to determine in the save() method whether a file upload has just occurred, or whether instead no upload has occurred and the object is simply being saved with the previously used filename.
It would be nice if the FieldFile object provided some indicator that a file has been uploaded with the form.
In my case I need to do once-only processing on newly uploaded files and so need to know when uploads happen.