• Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to persist the absolute path of selected file in file upload control.

 
Abhilesh Khatri
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having JSP page where I need to upload few images. while doing the form validation, I'm able to get the selected file Path but, I also want to persist the selected path in the form field.
But I'm not able to persist the absolute path of selected file in file upload control. Is this possible?
My code snippet is:
<input type="file" name="fileUplCtrl" size="20">
I even tried providing a static value to uploadControl. But still the value is not persisting.
<input type="file" name="fileUplCtrl" value="c:/
abc.gif" size="20" >
If somebody had faced the same problem. Please suggest. Any help will be appreciated.
regards
abhilesh
 
prabhat kumar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is not possible to give any predefined value to "input type=file" for security reasons. as you do not have any rights on client machine.
if you want.. then use activex controls, this is the only way.
 
Rajesh Boddepalli
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Send me the full code of the file then i will try to help u
Thanks
boddepalli@yahoo.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!