QHttpMultiPart fails with specific file



  • 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.

    Thanks.



  • I'm not aware of one. Did you try a search in the "public bugtracker":https://bugreports.qt-project.org already?



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.