Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

read the full file path  RSS feed

 
vinoth Robert
Ranch Hand
Posts: 32
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
greeting from vinoth

i'm using <input type="file" name="filetxt"> to read a csv file (JSP).
in the action page i am getting that file name using

request.getParameter("filetxt");

in IE 6 this method is working fine. My problem is it is not working in newer versions.
for example file path is "C:\vinoth\vinoth.csv".
in ie6 file path is same as above. in newer version(IE8) file path is "vinoth.csv".
Any idea? please...
 
Rob Spoor
Sheriff
Posts: 21087
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a browser thing, and the answer is short: you can't get what you want. Browsers are only required to send the file's name. As far as I know, IE6 is the only one that sends the path. Opera, Firefox, Chrome - they all just send the file name.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!