简体   繁体   中英

How to upload file just after selecting the file from the file dialog?

I want to upload an image just after the user select it from the dialog, not using another submit button? how to do this?

I haven't tried, but I believe you could submit using javascript. Hook the js function to the onChange() event of the file object?

There also appears to be an input event <- this article shows how to hook the event also.

To submit the form see here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM