#20343: Model save() method needs a way to tell if a file upload occurred
-------------------------------+--------------------
     Reporter:  ewoudenberg    |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.4
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20343>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to