Connecting Tech Pros Worldwide Forums | Help | Site Map

File Upload Issue Asp.Net

Dolph Larson
Guest
 
Posts: n/a
#1: Nov 19 '05
For some reason, when I try to upload a file to my web server using the
HtmlFile Control, the Request.Files is empty/null. The same code has
worked
for at least a year and now it has stopped. I am getting an error "Index
was
out of range" on the Request.Files[0] .

Can someone please help?

Thanks,
Dolph Larson


Patrick Olurotimi Ige
Guest
 
Posts: n/a
#2: Nov 19 '05

re: File Upload Issue Asp.Net


Dolph ,
Try posting ur code where the error is.
Patrick


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
MasterGaurav
Guest
 
Posts: n/a
#3: Nov 19 '05

re: File Upload Issue Asp.Net


Are you sure you have "runat=server" for the input tag?

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------

Patrice
Guest
 
Posts: n/a
#4: Nov 19 '05

re: File Upload Issue Asp.Net


Check the resulting HTML code to see if you have a name attribute for this
control and the correct enctype for the form...

Patrice

--

"Dolph Larson" <DolphLarson@discussions.microsoft.com> a écrit dans le
message de news:C8AE5926-9A53-4BBF-87B5-0EC470991216@microsoft.com...[color=blue]
> For some reason, when I try to upload a file to my web server using the
> HtmlFile Control, the Request.Files is empty/null. The same code has
> worked
> for at least a year and now it has stopped. I am getting an error "Index
> was
> out of range" on the Request.Files[0] .
>
> Can someone please help?
>
> Thanks,
> Dolph Larson
>[/color]


Dolph Larson
Guest
 
Posts: n/a
#5: Nov 19 '05

re: File Upload Issue Asp.Net


Thank you all for responding. Next time I will post code with my issue. I
finally solved the issue late last night. I removed .net framework 1.1 a
couple of days ago and forgot to put it back on. :( I only had .net
framework 1.0. It did not work with framework 1.0, but works great with 1.1.

Thanks again!
Dolph


"Dolph Larson" wrote:
[color=blue]
> For some reason, when I try to upload a file to my web server using the
> HtmlFile Control, the Request.Files is empty/null. The same code has
> worked
> for at least a year and now it has stopped. I am getting an error "Index
> was
> out of range" on the Request.Files[0] .
>
> Can someone please help?
>
> Thanks,
> Dolph Larson
>[/color]
Closed Thread