[英]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. 我没有尝试过,但我相信您可以使用javascript提交。 Hook the js function to the onChange() event of the file object?
将js函数挂钩到文件对象的onChange()事件?
There also appears to be an input event <- this article shows how to hook the event also. 似乎也有一个输入事件<-本文还介绍了如何挂钩事件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.