PDA

View Full Version : HTTP Upload File ending boundary issue


BlaveShmorby
09-28-2011, 12:53 PM
Hi, I'm using an HTTP step to upload a file using the multipart/form-data post method, but I've run into an issue where the final boundary marker (------RANDOM_STUFF--) is inserted without a CRLF before it.

I'm working around it right now by appending a CRLF to the file, which works since the file size itself is never sent, but it complicates the build and I'd much rather do it in the one step I'd be able to do it in if there was a way to get that on there.

Is there an option I'm missing? Is this working elsewhere? I'm trying to upload to an ASP.NET 4.0 ashx handler and using the context.Request.Files collection. It works with the newline appended, does not without it, and I tracked it down to code in System.Web (System.Web.HttpMultipartContentTemplateParser.AtB oundaryLine() in the .NET reference source) that only considers a boundary if it's at the beginning of a line.

As far as I've been able to tell this is correct, a boundary must always occur at the beginning of a line (see: http://tools.ietf.org/html/rfc2046#section-5.1.1 which is referenced by rfc2388). Any help is appreciated, thanks!

kinook
09-28-2011, 04:55 PM
If you downloaded Visual Build on or before Sept. 20, download and install again. It includes an update to the HTTP component used in Visual Build, and if there is a bug, it might be addressed in the update. If that doesn't help, please send the info requested here: http://www.kinook.com/Forum/showthread.php?t=3044

Thanks.

kinook
10-03-2011, 03:23 PM
Please download and install from http://www.kinook.com/Download/VisBuildProEval.exe and try again (the latest installer contains a patch to the networking component which should resolve this problem). Thanks.