Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QHttpMultiPart fails with specific file
mirswith last edited by
Hi. Does QHttpMultiPart in v4.8.0 have any known bugs regarding failure with certain files? I have been using this for a while and have not had any trouble uploading to my java server yet today I found a file that causes my Java server to thrown an exception "Processing of multipart/form-data request failed. Stream ended unexpectedly". To test my java server I decided to try uploading from one of my flash clients, turns out the upload for the file in question works perfectly fine there which makes me believe my server is ok and there is a problem with my Qt code, but as I mentioned this has been working great with tons of tests before hand without failure; my current test has 533 files, all of which upload fine except this one. They are all jpeg images and the one in question opens just fine. Makes me believe there is a bug surrounding file length sizes and maybe encoded data failing with specific character sequences, but I'm only guessing here.
goetz last edited by
I'm not aware of one. Did you try a search in the "public bugtracker":https://bugreports.qt-project.org already?
brickleg last edited by
I ran into an issue like this recently, where there was a specific file that, having been transferred through an instance of QHttpMultiPart, would always be corrupt on the receiving end. For details and the potential fix see https://bugreports.qt-project.org/browse/QTBUG-26736