How to get full path of selected file on change of <input type=‘file’> using javascript, jquery-ajax?

后端 未结 11 2602
谎友^
谎友^ 2020-11-21 04:36

How to get full path of file while selecting file using




        
11条回答
  •  鱼传尺愫
    2020-11-21 05:04

    One interesting note: although this isn't available in on the web, if you're using JS in Electron then you can do this.

    Using the standard HTML5 file input, you'll receive an extra path property on selected files, containing the real file path.

    Full docs here: https://github.com/electron/electron/blob/master/docs/api/file-object.md

提交回复
热议问题