473,394 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

File Upload Issue Asp.Net

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

Nov 19 '05 #1
4 1079
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!
Nov 19 '05 #2
Are you sure you have "runat=server" for the input tag?

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

Nov 19 '05 #3
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" <Do*********@discussions.microsoft.com> a écrit dans le
message de news:C8**********************************@microsof t.com...
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

Nov 19 '05 #4
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:
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

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to...
14
by: Al Smith | last post by:
I need help in implementing proper error handling. I am trying to upload a file based on the sample code below. The code works well except if the file selected is too big. I do know about the...
4
by: Manu | last post by:
I want my user to upload a file to the site. Let us say a word file to be saved in the database for other users of the site to use. How can this be done? Is there a web control for that?
4
by: Matt Jensen | last post by:
Howdy I've got a rather strange issue occuring. I used forms based .NET authentication, although I'm also setting some session variables when people login. However, I've found when people use...
3
by: Mike Kelly | last post by:
Hi. I've built a page using standard ASP.NET 2.0 features and when I upload a large file (>20MB) to our intranet server, I get a paltry 100KB/s on our 100Mb/s LAN. Simply copying the file, I get...
8
by: mpar612 | last post by:
Hello, I am a newbie to PHP, MySQL. I am trying to create a basic file upload form. I want to get that working and then I want to integrate that into a form that will rename the file and save...
2
by: David | last post by:
I am attempting to upload files via. PHP 4.4.4. The '$_FILES' resolves to '/tmp/phpey9MpD', but when I go to the /tmp dir. I do not see any php* file. Could this be a issue with PHP or unix...
0
by: Tim Payne | last post by:
I have an odd permissions issue with uploading files to a windows 2003 server. I have a reasonably unusual setup. We have a php website, running through IIS that was written to use mod_rewrite....
4
by: henribaeyens | last post by:
Hello, I have this question that hopefully some of you guys can answer. So I use the usual mechanism: display form, enter data, browse for file, validate, upload if no errors. Well, something...
2
by: darrel | last post by:
I've written a file-upload application in VB.net. A web form with a FILE field that then uploads the file. Pretty simple. I'm getting a report from the customer that one particular user can't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.