aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "File Uploading   Problem !!!" Watch "File Uploading   Problem !!!" New topic
Author

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,
Sunil.s


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

Joined: Nov 27, 2001
Posts: 135
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: http://aspose.com/file-tools
 
subject: File Uploading Problem !!!
 
Similar Threads
Files
File Uploading Problem !!
using field value
unable to ignore DOCTYPE during while reading
How to set up connection pool manually in Glassfish Server?