Show selected file without postback
5 answers
It is impossible, even if referencing a file with file://will not work, when you get the value from the file input field, you will only get the file name, not the path. Therefore, it is impossible to find out where the image is. To make it work, you will need to use a Flash-based bootloader.
, , , Internet Explorer , , c:\fakepath\filename.png. , , JavaScript - .
C:\test.txt:
Firefox 3.5.6
test.txtChrome 3.0.195.38
test.txtOpera 10.00
C:\fake_path\test.txtInternet Explorer 8
C:\fakepath\test.txt
+5