Upgrading from release 7.4 to 7.7 #1574
-
In release 7.4 you could use the mg_http_upload() when a file was being uploaded via a HTTP form. A callback function would then "catch" the filename of the file being uploaded. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, if I understand you correctly, this tutorial shows how to do a file upload when it is larger than the available memory and a multipart-form can't be used, as in the "form-upload" example. LOG(LL_INFO, ("Query string: [%.*s]", (int) hm->query.len, hm->query.ptr)); the query string contains the filename, you can see that in the log if you run the example. |
Beta Was this translation helpful? Give feedback.
-
I found my missing "Content-Disposition" header (filename) in the body part of the HTTP message. |
Beta Was this translation helpful? Give feedback.
I found my missing "Content-Disposition" header (filename) in the body part of the HTTP message.