I am following the directions for ASP upload:
http://www.asp101.com/articles/jacob/scriptupload.asp

This is working great at my website:
http://www.walkhere.com/uploadform.htm

However, how do I capture form data for file name? The following script
will not work:
<%=Uploader.Form("File.FileName")%>

Re: ASP pure upload - Capture FileName in form by Kevin

Kevin
Mon Aug 28 14:52:50 CDT 2006

Well, after looking at the page you directed us to, I read:

Here is an example of how to access a specific file in the Files Collection
using the HTML file input element name as the Index:

<%
Response.Write "File Name:" & MyUploader.Files("file1").FileName
Response.Write "File Size:" & MyUploader.Files("file1").FileSize
Response.Write "File Type:" & MyUploader.Files("file1").ContentType
%>

It's about 1/3 of the way down the page.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

It takes a tough man to make a tender chicken salad.


"Beefminator" <jkesselring@cfl.rr.com> wrote in message
news:1156793299.666912.289470@i3g2000cwc.googlegroups.com...
>I am following the directions for ASP upload:
> http://www.asp101.com/articles/jacob/scriptupload.asp
>
> This is working great at my website:
> http://www.walkhere.com/uploadform.htm
>
> However, how do I capture form data for file name? The following script
> will not work:
> <%=Uploader.Form("File.FileName")%>
>



Re: ASP pure upload - Capture FileName in form by Beefminator

Beefminator
Mon Aug 28 15:35:29 CDT 2006

Hey Kevin,

Thanks for your quick response. I am still having problems, I am not
tough as making chicken tender salad.

I put the following the code in
http://www.walkhere.com/uploadexmple.asp

<%
Response.Write "File Name:" & MyUploader.Files("FILE1").FileName
Response.Write "File Size:" & MyUploader.Files("FILE1").FileSize
Response.Write "File Type:" & MyUploader.Files("FILE1").ContentType
%>

It barfed..doesn't work. What am I doing wrong?

Thanks,
Jason


Re: ASP pure upload - Capture FileName in form by Trevor

Trevor
Tue Aug 29 01:38:24 CDT 2006

Beefminator wrote:
> Hey Kevin,
>
> Thanks for your quick response. I am still having problems, I am not
> tough as making chicken tender salad.
>
> I put the following the code in
> http://www.walkhere.com/uploadexmple.asp
>
> <%
> Response.Write "File Name:" & MyUploader.Files("FILE1").FileName
> Response.Write "File Size:" & MyUploader.Files("FILE1").FileSize
> Response.Write "File Type:" & MyUploader.Files("FILE1").ContentType
> %>
>
> It barfed..doesn't work. What am I doing wrong?
>
> Thanks,
> Jason

Weel, as I guess you know, the error was
Thank you for your upload
File(s) not uploaded.

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'MyUploader'

/uploadexmple.asp, line 72

I am very new to ASP, but I suggest that you check the variable names.
It's posssible that Kevin was just giving an example, nor the exact code
that you need.


--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/


Re: ASP pure upload - Capture FileName in form by Stefan

Stefan
Tue Aug 29 02:58:15 CDT 2006

And
Are you using the code exactly as provided or did you rename MyUploader

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


"Beefminator" <jkesselring@cfl.rr.com> wrote in message news:1156797329.596656.302710@h48g2000cwc.googlegroups.com...
| Hey Kevin,
|
| Thanks for your quick response. I am still having problems, I am not
| tough as making chicken tender salad.
|
| I put the following the code in
| http://www.walkhere.com/uploadexmple.asp
|
| <%
| Response.Write "File Name:" & MyUploader.Files("FILE1").FileName
| Response.Write "File Size:" & MyUploader.Files("FILE1").FileSize
| Response.Write "File Type:" & MyUploader.Files("FILE1").ContentType
| %>
|
| It barfed..doesn't work. What am I doing wrong?
|
| Thanks,
| Jason
|



Re: ASP pure upload - Capture FileName in form by Beefminator

Beefminator
Tue Aug 29 07:42:37 CDT 2006

Yeah, the name was incorrect so I changed the name from "MyUploader" to
"Uploader"

I am now getting a different error for
http://www.walkhere.com/uploadexmple.asp:

Thank you for your upload
File(s) not uploaded.


Microsoft VBScript runtime error '800a01a8'

Object required: '[undefined]'

/uploadexmple.asp, line 73


Re: ASP pure upload - Capture FileName in form by Kevin

Kevin
Tue Aug 29 08:26:39 CDT 2006

Well, I suggest you have a look at "line 73" of your code, as we can't see
it on the client side.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

It takes a tough man to make a tender chicken salad.


"Beefminator" <jkesselring@cfl.rr.com> wrote in message
news:1156855357.604837.153750@m73g2000cwd.googlegroups.com...
> Yeah, the name was incorrect so I changed the name from "MyUploader" to
> "Uploader"
>
> I am now getting a different error for
> http://www.walkhere.com/uploadexmple.asp:
>
> Thank you for your upload
> File(s) not uploaded.
>
>
> Microsoft VBScript runtime error '800a01a8'
>
> Object required: '[undefined]'
>
> /uploadexmple.asp, line 73
>



Re: ASP pure upload - Capture FileName in form by Beefminator

Beefminator
Tue Aug 29 09:00:40 CDT 2006

Hey Kevin,

Line 73 is the following:

<% Response.Write Uploader.Files("FILE1").FileName %>


Re: ASP pure upload - Capture FileName in form by Kevin

Kevin
Tue Aug 29 12:07:25 CDT 2006

Well, either the "Uploader" variable has not been assigned, or there is no
file in the Files collection named "FILE1".

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

It takes a tough man to make a tender chicken salad.


"Beefminator" <jkesselring@cfl.rr.com> wrote in message
news:1156860040.771627.54410@p79g2000cwp.googlegroups.com...
> Hey Kevin,
>
> Line 73 is the following:
>
> <% Response.Write Uploader.Files("FILE1").FileName %>
>



Re: ASP pure upload - Capture FileName in form by Beefminator

Beefminator
Tue Aug 29 12:47:52 CDT 2006

Hey Kieth,

The code: <%Response.Write Uploader.Files("file1").FileName%> is now
working.

I thought it wasn't working, but it is now. Appreciate your patience.

Jason