#20034: Upload handlers provide no way to retrieve previously parsed POST 
variables
-------------------------------+--------------------
     Reporter:  rfkrocktk@…    |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Core (Other)   |    Version:  1.5
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  1              |      UI/UX:  0
-------------------------------+--------------------
 In a custom Django upload handler like the one here, it is impossible to
 get other POST variables sent along with the multipart request until the
 handler has completed the upload entirely. Often, it'd be nice to be able
 to grab the variables as they're parsed to do something with them.
 Essentially, a method should be added to
 django.core.files.uploadhandler.FileUploadHandler called something like
 "variable_complete" which would provide the name and content type of each
 non-file variable passed with the multipart request:

 {{{
 class FileUploadHandler:

     # ...
     def variable_complete(self, variable_name, variable_value):
         """
         Called after a POST variable has been successfully parsed from the
 multipart request.
         """
         pass
 }}}

 This would save me the trouble of manually having to parse the multipart
 request myself in "handle_raw_input".

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20034>
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to