how to get files from <input type='file' …/> (Indirect) with javascript

后端 未结 3 889
闹比i
闹比i 2020-12-05 06:43

I have problem with \"input tag\" in non IE browsers

I\'m trying to write my uploader , just using javascript a

3条回答
  •  醉梦人生
    2020-12-05 07:06

    Above answers are pretty sufficient. Additional to the onChange, if you upload a file using drag and drop events, you can get the file in drop event by accessing eventArgs.dataTransfer.files.

提交回复
热议问题