Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to show the file path even then click on the upload button  RSS feed

 
lee chan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i used <ice:inputFile..... >

When i click on upload button, path of the file which i browsed been not showing in the input textbox.

How can i persist this path in the input textbox.

I need this requirement urgently. please help me out.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have no control over that. That dialog box is built into the web browser, which usually is building it from the built-in File Open dialog of the operating system that the client is running under. The only way to override that behavior is to modify the user's web browser itself.

You should also be aware that Internet Explorer typically sends a directory path along with the filename when it uploads to a web server, but most other browsers do not. This is actually a security problem with IE, since it tells others things about the client's local filesystem structure that they probably shouldn't know.
 
lee chan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.

Is there any other way to browse a file and persist the path in the input text-box using icefaces.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. If you think your server needs the full path of a file on a client machine, you should revise your design so that isn't a requirement any more.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!