asp_web_howto thread: Uploading Picture Files to a server.
Message #1 by "John Howe" <johnhowe@c...> on Mon, 28 Oct 2002 10:39:53
|
|
I am trying to upload a file normally a graphic jpg file to the server.
The file to upload is selected by the user. I am having difficulty in
picking up the file name on the response form and even if I can do this do
not know the best methos to use to move the file. I want to use the
movefile method but can't figure it out.
The relevant code on the initial form is as shown.
<FORM ACTION="testformresp.asp" ENCTYPE="MULTIPART/FORM-DATA"
METHOD="POST">
<TABLE WIDTH="100%">
<TR>
<TD ALIGN="RIGHT" VALIGN="TOP">Enter Filename:</TD>
<TD ALIGN="LEFT"><INPUT TYPE="FILE" NAME="FILE1"><BR>
<B><I><SMALL>Note: if a button labeled "Browse..." does not
appear, then your
browser does not support File Upload. For Internet Explorer 3.02
users, a
free add-on is available from Microsoft. Please see the FileUp
documentation
for more information.</SMALL></I></B>
</TD>
</TR>
<TR>
<TD ALIGN="RIGHT"> </TD>
<TD ALIGN="LEFT"><INPUT TYPE="SUBMIT" NAME="SUB1" VALUE="Upload
File"></TD>
</TR>
</TABLE>
To pick up the file name on the Action form I am trying this.
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE> Upload Results</TITLE>
<!-- METADATA TYPE="typelib" FILE="c:\Windows\System\scrrun.dll" -->
</HEAD>
<BODY>
<%
name=Request("FILE1")
Response.Write name
%>
Can any one kindly help to pick up the file name and how to proceed from
here.
Thanks.
John
Message #2 by bebels30@h... on Mon, 28 Oct 2002 16:24:01
|
|
Use a Site Galaxy Component....
if u dont have that jst email me then ill give you one
Message #3 by Nusrat Sarwar <nusrat286@y...> on Mon, 28 Oct 2002 11:03:02 -0800 (PST)
|
|
Hi
I have the same problem
can you email me too..???
please if you can.
thanx
regards
nusrat
bebels30@h... wrote:Use a Site Galaxy Component....
if u dont have that jst email me then ill give you one
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
---------------------------------
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
Message #4 by "John Howe" <johnhowe@c...> on Tue, 29 Oct 2002 07:23:27 +0100
|
|
Hi,
That sounds worth trying could you send the component to me.
Thanks
John
-----Original Message-----
From: bebels30@h... [mailto:bebels30@h...]
Sent: 28 October 2002 16:24
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Uploading Picture Files to a server.
Use a Site Galaxy Component....
if u dont have that jst email me then ill give you one
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
Message #5 by "John Howe" <johnhowe@c...> on Tue, 29 Oct 2002 14:52:13 +0100
|
|
HI,
I would appreciate this component if possible.
Thanks
John
-----Original Message-----
From: bebels30@h... [mailto:bebels30@h...]
Sent: 28 October 2002 16:24
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Uploading Picture Files to a server.
Use a Site Galaxy Component....
if u dont have that jst email me then ill give you one
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
|