Hi Ritesh,

For security reasons, it's impossible to suggest a file name in a file field
of a form.

Even if you write this in a plain HTML file :
<form>
<input type="file" name="filename" value="amazing.html">
</form>

You can check this answer in a good Javascript or HTML, or in any browser.

Best regards

-----Message d'origine-----
De : Ritesh Rawat [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 9 juin 2000 14:16
Ą : [EMAIL PROTECTED]
Objet : File upload


Could any one tell how a clent can upload a file.

I tried to use
upload.htm"
///////
<form method=post action="response.jsp"
Enctype="multipart/form-data"
<input type="file" name="fname">
<input type=submit value="upload">
</form>
//////////
But it does not work.I could not get the content in
the parameter "fname". It shows me the null value


__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to