<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>[How Do I:]  Multiple File Uploads in ASP.NET 2</title><link>http://www.asp.net</link><pubDate>Wed, 17 Sep 2008 00:51:58 GMT</pubDate><generator>umbraco</generator><description>Comments for [How Do I:]  Multiple File Uploads in ASP.NET 2</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/33478" rel="self" type="application/rss+xml" /><item><title>Comment Posted by krishnaprasadaccot@gmail.com</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Thu, 06 Mar 2008 14:18:20 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005422</guid><description><![CDATA[ <p>In this video when you list the uploaded images, in uploaded folder, Only the name of the files are different,but the images looking identical . Is that a problem with my browser, or you skipped that one? </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/krishnaprasadaccot@gmail.com.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sagesmith</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Tue, 11 Mar 2008 12:28:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005423</guid><description><![CDATA[ <p>Interesting, however I fail to see any ASP.NET 2 specific innovation. &#160;When I saw the title I thought for a minute the IE browser&#39;s common file dialog was going to support multiple file selections. &#160;Now that would be video worthy! &#160;It would really be a powerful enhancement and a huge step forward for browser-based applications. &#160;I&#39;m sure this will be a much appreciated feature for Internet sites which take a long time to upload individual files. &#160;However for Intranet sites where the actual posting of files is quick the differences between hitting an upload button five times versus requesting 4 additional inputs then hitting an upload button is hardly worth the effort. &#160;The frustration exits because the OS version of the common file dialog (multiple file selection, file type filtering at the dialog level, etc.) is much more robust than the browsers.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/sagesmith.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pradeepkr</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Thu, 13 Mar 2008 12:22:18 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005424</guid><description><![CDATA[ <p>There&#39;s an error in the C# code available for download at line 31. There&#39;s no variable named &#39;file&#39;, instead it should be &#39;uploads[i]&#39; in place of &#39;file&#39;.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/pradeepkr.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by JoeStagner</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Sat, 15 Mar 2008 12:45:56 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005425</guid><description><![CDATA[ <p>sagesmith - It&#39;s not new magic. Jst a series of techniques that developers can use. </p> <p>pradeep - I know about the code error and the file is being updated. Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/JoeStagner.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ericdow</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Mon, 24 Mar 2008 13:16:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005426</guid><description><![CDATA[ <p>I think a tutorial on how to do multiple uploads to a database would be a good idea.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ericdow.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ericdow</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Mon, 24 Mar 2008 13:19:47 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005427</guid><description><![CDATA[ <p>Sorry there is a tutorial on doing this site.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ericdow.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by daddyqbob50</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Sat, 29 Mar 2008 16:21:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005428</guid><description><![CDATA[ <p>Joe</p> <p>I want to upload all files from a certain client-side folder. I do not want the user to have to data enter the file names as there could be many small files. Is there any way to do this via ASP.Net? In other words how do I populate the HttpContext.Current.Request.Files collection using client script?</p> <p>I have asked several ASP.Net &quot;gurus&quot; abou this and they do not think it is possible due to browser security restrictions. Yet the upload control does it just fine.</p> <p>Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/daddyqbob50.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Talib_dotnet</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Thu, 03 Apr 2008 07:01:15 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005429</guid><description><![CDATA[ <p>Hi &#160;Joe,</p> <p>Awesome video .. You &#160;rock...</p> <p>One thing &#160;i &#160;wanted to know is that &#160;..can we develop the same with ASP.NET&#39;s &#160;FileUpload &#160;Control &#160; &#160;instead of HTMLFile Control....</p> <p>Waiting for your reply..</p> <p>Thanks..</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/Talib_dotnet.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by aguila1976</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Thu, 24 Apr 2008 09:09:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005430</guid><description><![CDATA[ <p>This code doesn&#180;t seem to work with c# in VS2008. It works uploading one file, but not several at one time.</p> <p>I did as pradeepkr and changed &#39;uploads[i]&#39; in place of &#39;file&#39;.</p> <p>I do get some strange warning, in the end of the behind code:</p> <p>catch(Exception Exp)</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;{</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;Span1.InnerHtml = &quot;Upload(s) FAILED.&quot;;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;}</p> <p>&quot;The variable &#39;Exp&#39; is declared but never used&quot;</p> <p>Anyone else tried it in VS2008 with c#?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/aguila1976.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mak101</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Fri, 25 Apr 2008 04:29:23 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005431</guid><description><![CDATA[ <p>It&#39;s great !</p> <p>However, if I just want to upload all files from a certain client-side folder, is there a video to show it?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/mak101.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by TheDecline02</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Wed, 07 May 2008 11:03:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005432</guid><description><![CDATA[ <p>This code dosen&#39;t actually work...</p> <p>1. You are trying to assign HttpPostedFile to a varible called file which dosen&#39;t even exist.</p> <p>2. You are only changing the filename of the saved file and not the actual file itself. So you are only uploading one file multiple times.</p> <p>3. You are using Visual Studio 2008 which is .NET 3.5 and the video is labeled as ASP.NET 2.</p> <p>Therefore this video is useless.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/TheDecline02.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by dtcs1</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Tue, 20 May 2008 18:44:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005433</guid><description><![CDATA[ <p>I have tried the C# code and it does NOT WORK!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/dtcs1.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by aftab</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Sat, 24 May 2008 12:07:34 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005434</guid><description><![CDATA[ <p>Thanks for this video</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/aftab.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by shweko</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Sun, 01 Jun 2008 19:47:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005435</guid><description><![CDATA[ <p>The way you called javaScript function is beautiful.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/shweko.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by zhngmm</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Wed, 04 Jun 2008 17:12:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005436</guid><description><![CDATA[ <p>works good on me, thank you very much</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/zhngmm.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by dw.egun</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Thu, 05 Jun 2008 04:52:36 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005437</guid><description><![CDATA[ <p>Thanks for the videos. It&#39;s awesome dude......</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/dw.egun.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pakpatel</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Sun, 22 Jun 2008 00:28:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005438</guid><description><![CDATA[ <p>Hi, JoeStagner </p> <p>C# Program not working.So can you fix that error on buttion click event.</p> <p>-Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/pakpatel.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by abhishek0410</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Wed, 02 Jul 2008 13:43:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005441</guid><description><![CDATA[ <p>I want to upload all files from a certain client-side folder. I do not want the user to have to data enter the file names as there could be many small files. Is there any way to do this via ASP.Net? </p> <p>or </p> <p>i wan to select multiple image at once....can u tell me another way.....if i hav folder which contains images......n i browse the folder and see the all the images of that folder in thumbanil in another form and then select multiple images or select all images(like we do while selecting or deleting files on harddisk) from that form and then insert into database???? is this possible?????? </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/abhishek0410.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cv_vikram</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Sat, 09 Aug 2008 08:33:20 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005442</guid><description><![CDATA[ <p>thanks....</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/cv_vikram.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sobriquet</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Wed, 13 Aug 2008 09:25:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005443</guid><description><![CDATA[ <p>Dear Joe,</p> <p>Great Job but i am facing a problem.</p> <p>I am inserting these uploaded files in a database,</p> <p>and whenever i upload multiple files,i get all the different file names, but the picture or file itself is the same.</p> <p>can you give me any tips??</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/sobriquet.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by muhammed</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Thu, 14 Aug 2008 06:46:56 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005444</guid><description><![CDATA[ <p>any one help me upload files and save then to sql server</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/muhammed.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ultravi0let</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Thu, 14 Aug 2008 12:53:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005445</guid><description><![CDATA[ <p>Hello,</p> <p>I followed part 1 and 2, great job! :)</p> <p>I&#39;m trying to add a validation for the file type. I added this code on &#160;btnSubmit_Click:</p> <p>string FileExtention = System.IO.Path.GetExtension(upload.FileName);</p> <p>if (FileExtention != &quot;.jpg&quot;)</p> <p>{</p> <p> &#160; &#160;lblMessage.Text = &quot;only .jpg files&quot;;</p> <p> &#160; &#160;return;</p> <p>}</p> <p>I&#39;m on the case when the user selects many files.</p> <p>The thing is, when the user gets the message &quot;only .jpg files&quot;, input controls are blank and the user has to select all the files all over again..</p> <p>How do I keep the values on the input controls, so that the users corrects only the wrong selection(s)? </p> <p>Thanks in advance.</p> <p>Regards,</p> <p>Sanaa RAMZI</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ultravi0let.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ccoe1</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Mon, 08 Sep 2008 04:19:15 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005446</guid><description><![CDATA[ <p>Great Post, works like a charm. I was wondering how to adjust the javascript to have a remove button next to the upload field to remove those created uploadfields if desired. </p> <p>Thanks heaps,</p> <p>Chris</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ccoe1.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by varundev4u</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Sat, 13 Sep 2008 02:21:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005447</guid><description><![CDATA[ <p>Great video.....</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/varundev4u.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by someguy198650</title><link>http://www.asp.net/web-forms/videos/how-do-i/how-do-i-multiple-file-uploads-in-aspnet-2</link><pubDate>Wed, 17 Sep 2008 00:51:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005448</guid><description><![CDATA[ <p>@ultravi0let</p> <p>did you already solve ur problem, im having the same requirement.</p> <p>can u please post your solution if any? </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/someguy198650.jpg?forceidenticon=false&amp;dt=635050501200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>