How to resolve the C:\fakepath?

后端 未结 13 1705
梦如初夏
梦如初夏 2020-11-21 13:34

This is my upload button.



        
13条回答
  •  难免孤独
    2020-11-21 13:53

    I came accross the same problem. In IE8 it could be worked-around by creating a hidden input after the file input control. The fill this with the value of it's previous sibling. In IE9 this has been fixed aswell.

    My reason in wanting to get to know the full path was to create an javascript image preview before uploading. Now I have to upload the file to create a preview of the selected image.

提交回复
热议问题