Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 24825
172
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 26950
83
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic