<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sending HTML Form Data: File Upload and Multipart MIME</title><link>http://www.asp.net</link><pubDate>Tue, 26 Mar 2013 06:02:53 GMT</pubDate><generator>umbraco</generator><description>Comments for Sending HTML Form Data: File Upload and Multipart MIME</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/42560" rel="self" type="application/rss+xml" /><item><title>Comment Posted by jperl</title><link>http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2</link><pubDate>Thu, 05 Jul 2012 14:17:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015920</guid><description><![CDATA[ <p>Our Web API runs in an azure web role, and I prefer not to write to a directory.</p><p></p><p>What should we do if we do not want to write the files to a path but instead consume them directly as a stream?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/jperl.jpg?forceidenticon=false&amp;dt=635047181400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jperl</title><link>http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2</link><pubDate>Thu, 05 Jul 2012 14:21:02 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015921</guid><description><![CDATA[ <p>I guess my question is related to <a rel="nofollow" href="http://forums.asp.net/t/1817707.aspx/1" target="_blank">forums.asp.net/</a></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/jperl.jpg?forceidenticon=false&amp;dt=635047181400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cam340</title><link>http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2</link><pubDate>Wed, 11 Jul 2012 15:16:57 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015958</guid><description><![CDATA[ <p>Excellent article.  In my brief usage of web api for file uploads following your guidance it appears that the uploaded file is complete buffered in memory before post method in the ApiController is called.  Is this accurate and, if so, is there a way to circumvent this?  </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/cam340.jpg?forceidenticon=false&amp;dt=635047181400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by panesofglass</title><link>http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2</link><pubDate>Thu, 26 Jul 2012 17:11:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016053</guid><description><![CDATA[ <p>What happened to the caption? How would you access that or a slightly more complex type?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/panesofglass.jpg?forceidenticon=false&amp;dt=635047181400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tavanaonline</title><link>http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2</link><pubDate>Wed, 29 Aug 2012 02:32:20 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016339</guid><description><![CDATA[ <p>This does not work on RC. lots of errors.</p><p>And shouldn&#39;t there be an instruction on how to do the async posting in client side?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tavanaonline.jpg?forceidenticon=false&amp;dt=635047181400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by aspsich</title><link>http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2</link><pubDate>Thu, 13 Sep 2012 16:23:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016436</guid><description><![CDATA[ <p>Could you provide a sample of how to upload a file from .Net code using HttpClient?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/aspsich.jpg?forceidenticon=false&amp;dt=635047181400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by smashraid</title><link>http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2</link><pubDate>Thu, 20 Dec 2012 10:57:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017042</guid><description><![CDATA[ <p>I&#39;m working with Visual Studio 2010 and the codes is not working FileData and FormData is empty. I check the Post with firebug and it has the values.</p><p>Headers: <a rel="nofollow" href="http://screencast.com/t/5fhj0CfgiG" target="_blank">screencast.com/</a></p><p>Post: <a rel="nofollow" href="http://screencast.com/t/KCsPizDmC" target="_blank">screencast.com/</a></p><p></p><p>My code is the same as yours but for framework 4.0.</p><p>I test the application for framework 4.5 and works fine</p><p></p><p>Thanks</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/smashraid.jpg?forceidenticon=false&amp;dt=635047181400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by thien</title><link>http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2</link><pubDate>Wed, 26 Dec 2012 23:27:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017070</guid><description><![CDATA[ <p>Helo Mike,</p><p></p><p>How can we access the HttpContext in </p><p>ContinueWith&lt;HttpResponseMessage&gt;(t =&gt; {</p><p>           //HttpContext.Current = null here</p><p>});</p><p></p><p>Thank you,</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/thien.jpg?forceidenticon=false&amp;dt=635047181400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bahadirarslan</title><link>http://www.asp.net/web-api/overview/working-with-http/sending-html-form-data,-part-2</link><pubDate>Tue, 26 Mar 2013 06:02:53 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018779</guid><description><![CDATA[ <p>Hi, </p><p>I am trying to achieve something like this but my MultipartFormDataStreamProvider object&#39;s FormData and FileData is allways empty. </p><p>I couldn&#39;t find my mistake, i hope you can help.</p><p><a rel="nofollow" href="http://stackoverflow.com/questions/15633081/file-upload-with-additonal-form-data-to-web-api-from-mvc" target="_blank">stackoverflow.com/</a></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/bahadirarslan.jpg?forceidenticon=false&amp;dt=635047181400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>