Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retain file path in file input ?

Montano Mazvik
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am facing a problem while using File input element of HTML.

When I attach a file & submit the form ,there is cross validation for a few user inputs that if fails then I have to redisplay the same page again with previously eneterd data.

I am using view bean to restore the values of rest of the fileds but I failed to restore the file path/value of File input element.

Please note that I have tried to do this using Javascript but doesn't work for me.

Pls help...

Thanks in Advance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic