File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes fileupload- default file name-ujent help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

fileupload- default file name-ujent help


Joined: Nov 16, 2001
Posts: 7
Hi I am using the com.oreilly.servlet.MultipartRequest for uploading the file, but I want to set the default file value in HTML, beacuse it is fixed file which I want to upload.How to do this ?I have tried like this but servlet is giving file as "null".
<INPUT TYPE=FILE NAME=file value="E:/mail/NewTest.class">
Please solve my problem.
Can any body help me?;
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Oddly enough, someone else asked the exact same question here!

I agree. Here's the link:
subject: fileupload- default file name-ujent help
It's not a secret anymore!