473,396 Members | 1,789 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,396 software developers and data experts.

Web Server NOT grabbing File1.PostedFile ???

Help Needed Please!!! With a VB.NET web application, I am trying to
save pictures and files to a directory on the web server. However, the
web server is not grabbing the Posted Files. For example:
File1.PostedFile Is Nothing = True. Like it always seems to go, this
page and the File1.PostedFile method works perfectly fine on my
development machine(XP Pro, VS.NEt, .Net 1.1). Is there any causes or
reason why the web server(2000 Server, .Net 1.0) is not getting the
File1.PostedFile.

Any ideas as to why this will work on my development machine and not
off the server. Possibly security issues on server? I am really
stumped because I have used the same methods before on other servers.

Thanks,

Brett

How I narrowed down to the above problem:
http://groups-beta.google.com/group/...3b135dae60c1c1

Nov 19 '05 #1
4 1581
Does your form have enctype="multipart/form-data" attribute?

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU

<bw****@lbrspec.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Help Needed Please!!! With a VB.NET web application, I am trying to
save pictures and files to a directory on the web server. However, the
web server is not grabbing the Posted Files. For example:
File1.PostedFile Is Nothing = True. Like it always seems to go, this
page and the File1.PostedFile method works perfectly fine on my
development machine(XP Pro, VS.NEt, .Net 1.1). Is there any causes or
reason why the web server(2000 Server, .Net 1.0) is not getting the
File1.PostedFile.

Any ideas as to why this will work on my development machine and not
off the server. Possibly security issues on server? I am really
stumped because I have used the same methods before on other servers.

Thanks,

Brett

How I narrowed down to the above problem:
http://groups-beta.google.com/group/...3b135dae60c1c1

Nov 19 '05 #2
No, I do not believe so. Where exactly do you put this?

Thanks for your help.

Nov 19 '05 #3
<form runat="server" enctype="multipart/form-data"...>
<%-- Controls go here --%>
</form>

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU

<bw****@lbrspec.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
No, I do not believe so. Where exactly do you put this?

Thanks for your help.

Nov 19 '05 #4
thanks that did the trick!!

Nov 19 '05 #5

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

Similar topics

0
by: Alex Pet | last post by:
Hi, I have a very strange situation here. I have an aspx page through which I upoload image file in a folder. I can upload file first time successfully. when second time I try to upload same...
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...
2
by: FusionGuy | last post by:
I've created a file uploading handler, implemented as an httpHandler. Each time I attempt to upload a file, or files, my HttpContext.Request.Files property never contains the files that were...
0
by: lknight643 | last post by:
I have an asp.net application that works with a SQL server database on server No. 1 but I want to upload files for storage to Server No. 2 that is accessible only from the Internet. If the file...
1
by: joe | last post by:
Any articles relating with Uploading images files to server and resize the image by asp.net 2.0
10
by: Paul | last post by:
Hi I am using the HtmlInputFile control to upload a file from a client to a server. I have a browse to find the file on the server but need to create the path dynamically as to were it will go...
0
by: pbd22 | last post by:
Hi. I am having a really tough time here and would appreciate some help. i am using an iFrame to pass a url string of files to upload to server. on the client i have created a multiple...
1
by: deepa80 | last post by:
I am trying to work on uploading images in SQL Server Database.Therez no error in the code though I encountered this while uploading the image @ runtime ..... Object reference not set to an...
0
OuTCasT
by: OuTCasT | last post by:
Hi Can anyone tell me how to upload a file to a web server ? i know how to save it on my computer. Private Sub Submit1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.