<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:]  Simple File Uploads in ASP.NET</title><link>http://asp.net</link><pubDate>Fri, 13 Feb 2009 15:33:09 GMT</pubDate><generator>umbraco</generator><description>Comments for [How Do I:]  Simple File Uploads in ASP.NET</description><language>en</language><atom:link href="http://asp.net/rss/comments/33477" rel="self" type="application/rss+xml" /><item><title>Comment Posted by twkessel</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Sun, 16 Mar 2008 00:08:42 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005385</guid><description><![CDATA[ <p>Does anyone know how to change the C# code to upload to a relative directory so it doesn&#39;t matter if you change hosting companies?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/twkessel.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by izraelie</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Mon, 17 Mar 2008 08:22:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005386</guid><description><![CDATA[ <p>Pls kindly indicate hw to upload image files to</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/izraelie.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by JoeStagner</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Thu, 20 Mar 2008 17:20:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005387</guid><description><![CDATA[ <p>Server.MapPath(&quot;.&quot;) will give you the current directy, then you can append the relative path. Remember the app still needs write access to the directory.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/JoeStagner.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by laxmikanth2005</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Thu, 27 Mar 2008 09:07:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005388</guid><description><![CDATA[ <p>Hi every one,</p> <p>How can I stop downloading my private videos on web. people are using different third party tool like</p> <p>* Orbit</p> <p>* Xilisoft</p> <p>* VDownloader</p> <p>* TubeSucker</p> <p>* VideoGet</p> <p>they are easily downloading my videos ..is there any solution to stop this type steeling</p> <p>please give me solution </p> <p>tx</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/laxmikanth2005.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by samiz_z</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Tue, 15 Apr 2008 11:19:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005389</guid><description><![CDATA[ <p>thanks but i want to knew how to download the file that i have upload</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/samiz_z.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by JoeStagner</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Tue, 15 Apr 2008 21:42:45 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005390</guid><description><![CDATA[ <p>laxmikanth - if they can view them, they can download them. Really the only solution is to DRM them.</p> <p>samix - you either need to let the user do a directory listing or you need to create a web link somewhere after uploading.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/JoeStagner.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by confimalar</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Fri, 18 Apr 2008 04:18:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005391</guid><description><![CDATA[ <p>what are the parameters in fileupload.input stream??</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/confimalar.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by MominIjaz</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Sat, 17 May 2008 14:37:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005392</guid><description><![CDATA[ <p>simple way to download is</p> <p>&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://sitename/file.zip&quot;&gt;http://sitename/file.zip&lt;/a&gt;</p> <p>we can also download as Server.MapPath(&quot;.&quot;)</p> <p>also.. try &lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa478985.aspx#aspnet-jspmig-downloadinganduploading_topic6&quot;&gt;msdn.microsoft.com/.../aa478985.aspx&lt;/a&gt;</p> <p>hope this will solve your the issue.</p> <p>thanks, momin</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/MominIjaz.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kolept</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Tue, 17 Jun 2008 10:50:47 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005393</guid><description><![CDATA[ <p>Thanks 4 the code</p> <p>I still need some extra features from this code.</p> <p>Can u teach me how 2 show the picture I uploaded on top of the uploader controller,simple code in c# no need file type verification. Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kolept.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kolept</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Tue, 17 Jun 2008 10:59:02 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005394</guid><description><![CDATA[ <p>hi,sorry 4 giving so many comments.But is was not my faults cause the webpage showed I hv error so I keep on posting. Can u help me 2 delete the repeated comments. Thanks </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kolept.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bryanr</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Wed, 18 Jun 2008 13:08:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005399</guid><description><![CDATA[ <p>Very interesting video and presentation.</p> <p>Can you advise how to change the code to upload a file from a client PC to a web based server - the ASP FileUpload seems quite happy when the saving location is a physical drive including C:/ or something similar, but not at all for a virtual drive such as &lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://www.domain.com/storage/&quot;&gt;http://www.domain.com/storage/&lt;/a&gt;</p> <p>I need to upload an Access mdb from a client computer, on a fairly regular basis (every 3 days or so) to a shared hosting web server where I don&#39;t have access to the physical drive - the mdb will then be queried by further ASP pages. The comp0uter operator is not computer savvy so this has to be a painless, automated routine built into an ASP.NET form like the FileUpload systenm you demonstrated</p> <p>I get the physical system on my own drive OK, but fail when trying to switch to the virtuals systm on the server. I have tried various permutations including Server.MapPath with no luck. Any ideas for me please ? What am I doing wrong ? Do I need to code in UID and PWD for webserver access also ?</p> <p>Latest attempt at these lines was :</p> <p>filePath = &quot;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://www.domain.com/storage/&quot;&gt;http://www.domain.com/storage/&lt;/a&gt;&quot; &amp; FileUpLoad1.FileName</p> <p>FileUpLoad1.SaveAs(Server.MapPath(filePath))</p> <p>Thanks</p> <p>BR</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/bryanr.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tmorton</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Wed, 25 Jun 2008 14:08:27 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005400</guid><description><![CDATA[ <p>Hi kolept, I&#39;ve now removed the duplicate comments and we&#39;ve corrected the underlying problem with the error message that was occasionally appearing when leaving a video comment.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tmorton.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cv_vikram</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Sat, 09 Aug 2008 08:32:57 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005401</guid><description><![CDATA[ <p>thanks 4 the video.......</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/cv_vikram.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by aslesh</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Mon, 11 Aug 2008 17:05:38 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005402</guid><description><![CDATA[ <p>Stagner, </p> <p>Nice work.. I have a question. when u clcik on the browse button is it possible to show up another computer(i,e instead of uploading it from our computer i need to upload some documets which were located in another server).. </p> <p>how to do this ?</p> <p>does FTP do anything with this?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/aslesh.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by AZtraveler</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Wed, 13 Aug 2008 18:08:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005403</guid><description><![CDATA[ <p>Great video series and thanks for the information.</p> <p>I watched all 4 and am now trying to incorporate this into our Intranet and can get this to work with the sample code provided, but am running into problems. &#160;We have a master page that we use for header content on our site. &#160;As you probably know, master pages have the &lt;asp:Content&gt; tag in them.</p> <p>The question I have is can this work using the MasterPage functionality?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/AZtraveler.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by muhammed</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Thu, 14 Aug 2008 01:54:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005404</guid><description><![CDATA[ <p>thanks for the video</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/muhammed.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by gajanan.shete</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Sun, 21 Sep 2008 02:09:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005405</guid><description><![CDATA[ <p>Does any one knows how to use inlinecode variable in codebehind i try it,but compiler replay me &#39;due to protection level u can&#39;t access variable or method.&#39;,</p> <p>is there any solution for this</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/gajanan.shete.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mbgczhao</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Tue, 21 Oct 2008 11:55:04 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005406</guid><description><![CDATA[ <p>Does anyone know how to execute a EXE thru a web application? I knew ASPNET is the user for web app, maybe I have to do something on this user&#39;s right. But how to? Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/mbgczhao.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by djibril_chimere_DIAW</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Wed, 29 Oct 2008 09:36:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005407</guid><description><![CDATA[ <p>Thanks ! J&#235;r&#235;j&#235;f !</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/djibril_chimere_DIAW.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bnsp4u</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Wed, 29 Oct 2008 22:44:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005408</guid><description><![CDATA[ <p>Really this video is cool.</p> <p>where can I find the another 3 video because i didn&#39;t find here except first and last one.</p> <p>Thanks..</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/bnsp4u.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by TecFX</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Sat, 01 Nov 2008 00:53:23 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005395</guid><description><![CDATA[ <p>This was a great tutorial. &#160;Does one exist for adding the FileUpload component to a DetailsView? &#160;I have been searching for a couple of days now and could really use the help.</p> <p>Thank you in advance.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/TecFX.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by funluckykitty</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Thu, 20 Nov 2008 16:39:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005397</guid><description><![CDATA[ <p>Very easy to follow.. works like a charm. &#160;</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/funluckykitty.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ersheido</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Thu, 11 Dec 2008 17:33:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005398</guid><description><![CDATA[ <p>Thanks.</p> <p>Can you describe how to restrict the file browsing window to specific file extensions? &#160;For example, if you want to look only for .pdf or .doc files on the client PC. &#160;How do I do that? &#160;I see a lot of sites doing it, but I can&#39;t find an obvious way in the control.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ersheido.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hanuman_guntupalli</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Thu, 18 Dec 2008 03:54:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005409</guid><description><![CDATA[ <p>Cool video.. but i want to upload file using sreams.. because my file size is large... can any one help... thanks in advance</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/hanuman_guntupalli.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bohunt</title><link>http://asp.net/web-forms/videos/how-do-i/how-do-i-simple-file-uploads-in-aspnet</link><pubDate>Fri, 13 Feb 2009 15:33:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000005410</guid><description><![CDATA[ <p>Fantastic - easy to follow!</p> <p>Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/bohunt.jpg?forceidenticon=false&amp;dt=635050413600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>