File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes File Uploading   Problem !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "File Uploading   Problem !!!" Watch "File Uploading   Problem !!!" New topic

File Uploading Problem !!!

sunilkumar ssuparasmul
Ranch Hand

Joined: Dec 13, 2000
Posts: 142
Hi all ,
I wanted to upload a file with a default file name.
Ie i dont want to select a file using "BRowse" button
but instead i wamt to hardcode the name of file.
I tried doing teh same it did not work.
WHen i looked into RFC spec , it is mentioned that
value attribute of file is readonly . SO U cannot expliclity set a value to it ?
Is there anyway to establish the same.
Your help is very much appreciated.
Thnaks in advance,

"Winners don't do different things<br /> They do things differently"
Mathew Kuruvilla
Ranch Hand

Joined: Nov 27, 2001
Posts: 141
You are not providing sufficient information in your question.
Dave Landers
Ranch Hand

Joined: Jul 24, 2002
Posts: 401
I think this is an HTTP/HTML question, about the upload form element (I forget what it's called). It lets your browser grab a file and POST it (as Multi-Part) to the server.
There is no way to control what the browser does with it. Netscape, for example does (or used to) always pop the browse dialog in some default (netscape install) directory looking for *.html files. Every time. Very annoying.
You are going to need a signed applet to do something more.
I agree. Here's the link:
subject: File Uploading Problem !!!
jQuery in Action, 3rd edition