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

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

How to get full path of file while selecting file using




        
11条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-21 05:04

    Did you mean this?

    $('#i_file').change( function(event) {
    var tmppath = URL.createObjectURL(event.target.files[0]);
        $("img").fadeIn("fast").attr('src',tmppath);       
    });
    

提交回复
热议问题