How to get the file path from HTML input form in Firefox 3

前端 未结 8 1763
臣服心动
臣服心动 2020-11-22 02:12

We have simple HTML form with , like shown below:

8条回答
  •  被撕碎了的回忆
    2020-11-22 02:28

    This is an alternate solution/fix... In FF3, You can retrieve file's full path in a textbox instead of file browse box. And that too... By drag/dropping the file!

    You can drag drop your file into a text box in your html page. and it will display the file's complete path. This data can transferred to your server easily or manipulate them.

    All you have to do is to use the extension DragDropUpload

    http://www.teslacore.it/wiki/index.php?title=DragDropUpload

    This extension will helps you in drag dropping files into your File Browse (Input file) box. But still you wont able to get the file full path, If you try to retrieve.

    So, I tweaked this extension a little. In the way I can drag drop a file on to any "Text Input" box and get the file full path. And thus I can able to get the file full path in FF3 Firefox 3.

提交回复
热议问题