0

here I want to set the fix source location to file uploader from which only an user can choose file(s). my html for file uploader is like

Selecte Document  <input type="file" id="myFile"/>

i.e is allowing me to choose documents from any location.

Madhav
  • 559
  • 2
  • 11
  • 34
  • You can't do that. Please refer to : http://stackoverflow.com/questions/1696877/how-to-set-a-value-to-a-file-input-in-html and http://stackoverflow.com/questions/8323010/putting-default-value-in-input-type-file – T.Shah Dec 08 '16 at 10:28
  • why i can't do this?i saw the link you shared but that is not clear to me ,to convice my self as this i can't do – Madhav Dec 08 '16 at 10:44
  • It is more like - You should not do that for security reasons. I would not want anybody to just access any file from my computer without my intervention. If you populate the value like - value='c:\sometext.txt' , it would be uploaded along the form. – T.Shah Dec 08 '16 at 10:50
  • no actualy what am trying to say that,i dont want to set any value to that control i wanted to open one of default location means when user will click choose file then that specific location will be opened,and there will be multiple documents so user can select any file from that location(i.e any file from that location) – Madhav Dec 08 '16 at 10:54
  • From some folder on your site only? Then let user select one of the files that already are there. No need to use file tag only. – T.Shah Dec 08 '16 at 11:03
  • No need to use file tag only.means? – Madhav Dec 08 '16 at 11:42

0 Answers0