|
-
September 23rd, 1999, 02:21 AM
#1
File upload
Hi all,
I am designing a site and want to provide a link on one of the pages through
which the user can select a file from his pc and upload it on the server.
How can i do that ? i think servlets can come to my help but how ? and is
there any other way than servlets ? My site is running on AS/400 machine and
i have to do a lot to enable servlets on it.
Can you please do a favour to send me the answer through e-mail. For me
access to web is uncertain - my email-id is [email protected]
Thanx in anticipation.
-Harsh
-
September 23rd, 1999, 05:34 AM
#2
Re: File upload
You should use the tag input
<input type=file name=myfile>
Da file will be send automaticly by the browser
and it depends on what kind of webserver you are using
It is not necessery to use servlets, nut any kind of CGI programs
that can run on your webserver
Leon
-
September 23rd, 1999, 07:59 AM
#3
Re: File upload
Also u will need to give 'ENCTYPE' to 'form' tag. ie ENCTYPE=multipart/form-data
otherwise only the name of the file will be sent, and not the contents.
- UnicMan
http://members.tripod.com/unicman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|