Hello, I am writing a Flask web server that must accept binary file uploads as application/x-www-form-urlencoded. E.g. with CURL I would expect to upload a file as:
curl -XPOST -H'Content-type: image/jpeg' --data-binary '@my_image.jpg' http://localhost:5000/upload Rather than: curl -XPOST --data-binary -F 'file=my_image.jpg' http://localhost:5000/upload The problem is that with the former method the binary is only found in the "request.stream" and treated as a data stream. I am not sure whether this is handled entirely in memory, saved to disk, etc. and if a multi-gigabyte file may blow up my server. I would like to use the "request.files" variable to access the uploaded file from "request.files" and use all the convenience methods available for that. Is there a way I can accomplish that with Flask/Werkzeug? Thanks, Stefano -- You received this message because you are subscribed to the Google Groups "pocoo-libs" 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]. Visit this group at https://groups.google.com/group/pocoo-libs. For more options, visit https://groups.google.com/d/optout.
