How to resolve the C:\fakepath?

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

This is my upload button.



        
13条回答
  •  失恋的感觉
    2020-11-21 13:52

    You would be able to get at least temporary created copy of the file path on your machine. The only condition here is your input element should be within a form What you have to do else is putting in the form an attribute enctype, e.g.:

    ...

    you can find the path string at the bottom. It opens stream to file and then deletes it.

提交回复
热议问题