<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Travis.Net.Blog : FileUpload</title><link>http://weblogs.asp.net/thigley/archive/tags/FileUpload/default.aspx</link><description>Tags: FileUpload</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>HttpPostedFile.SaveAs</title><link>http://weblogs.asp.net/thigley/archive/2007/05/24/httppostedfile-saveas.aspx</link><pubDate>Thu, 24 May 2007 15:45:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2651178</guid><dc:creator>mxmissile</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/thigley/rsscomments.aspx?PostID=2651178</wfw:commentRss><comments>http://weblogs.asp.net/thigley/archive/2007/05/24/httppostedfile-saveas.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;So&amp;nbsp;I'm building a simple app that allows users to upload photos to our&amp;nbsp;public website.&amp;nbsp; I'm&amp;nbsp;using the FileUpload control that is built into ASP.NET.&amp;nbsp; It has worked like a charm before in other apps, but&amp;nbsp;today&amp;nbsp;I started having a problem with it, in place of the files that get uploaded are a little text file (with the same name specified in the&amp;nbsp;HttpPostedFile.SaveAs method) with these contents:&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;The original file is in the temp folder. Full path of the file: C:\Temp\597fb3e5-542d-48ba-9b61-08bf9f6ddc42.tmp&lt;/P&gt;
&lt;P mce_keep="true"&gt;So I go checkout the Temp folder and sure enough, albeit renamed, my .JPG's are there.&amp;nbsp; After googling, I found a post on the ASP.NET forums, but alas no answers.&amp;nbsp; Absolutely nothing else.&lt;/P&gt;
&lt;P mce_keep="true"&gt;I've tried using IIS on Vista,&amp;nbsp;Visual Studio Development Server, and even pushed it to a staging server, they all produce the same behavior. I have given the ASP.NET process Modify access rights to the folder, but I think if it was a security issue it would throw an "Access Denied" exception. I'm going to revisit some old apps where I have used this control and see if I can spot anything that stands out.&lt;/P&gt;
&lt;P mce_keep="true"&gt;UPDATE: I figured it out, the culprit was a 3rd party component installed previously.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2651178" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/thigley/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/thigley/archive/tags/FileUpload/default.aspx">FileUpload</category></item></channel></rss>