I want upload the file using HTML file control but without selection dialog since i have to upload file which has fixed path "c:\finsts\finstmt.xml".
Scenario 1:
I have tried to upload file using HTML control . In which it shows browse button and on click you have to select file from file chooser dialog box. It works. Its upload file to server fine. Server side code is correct and works fine.
Scenario 2:
But when I hide the file chooser control, with following HTML code:
<div name="filediv" style="display:none">
<html type="file" id="uploadfile" value="c:\finsts\finstmt.xml">
</div>
As file path is fixed and I don't want to user select file. When I tried with this scenario it doesn't work while first works fine. I don't understood how file control works.
Anyone here knows any work around to work the second scenario?
Thanks.
<input type="file" …