Showing posts with label pictures. Show all posts
Showing posts with label pictures. Show all posts

Saturday, March 31, 2012

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...63b135dae60c1c1Does your form have enctype="multipart/form-data" attribute?

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

<bwalke@.lbrspec.com> wrote in message
news:1113404938.416180.252200@.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...63b135dae60c1c1
No, I do not believe so. Where exactly do you put this?

Thanks for your help.
<form runat="server" enctype="multipart/form-data"...>
<%-- Controls go here --%>
</form
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU

<bwalke@.lbrspec.com> wrote in message
news:1113407675.740786.76040@.g14g2000cwa.googlegro ups.com...
> No, I do not believe so. Where exactly do you put this?
> Thanks for your help.
thanks that did the trick!!

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...63b135dae60c1c1Does your form have enctype="multipart/form-data" attribute?
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
<bwalke@.lbrspec.com> wrote in message
news:1113404938.416180.252200@.l41g2000cwc.googlegroups.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...63b135dae60c1c1
>
No, I do not believe so. Where exactly do you put this?
Thanks for your help.
<form runat="server" enctype="multipart/form-data"...>
<%-- Controls go here --%>
</form>
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
<bwalke@.lbrspec.com> wrote in message
news:1113407675.740786.76040@.g14g2000cwa.googlegroups.com...
> No, I do not believe so. Where exactly do you put this?
> Thanks for your help.
>
thanks that did the trick!!