在 php 中使用 dropzonejs 拖放图像上传后,是否可以重定向到另一个页面?
It definitely is !
<script type="text/javascript">
$(function() {
var myDropzone = new Dropzone("#dz"); // this will create instance of Dropzone on the #dz element
myDropzone.on("addedfile", function(file) {
location.href = 'http://redirect-here/'; // this will redirect you when the file is added to dropzone
});
});
</script>
with the corresponding HTML
<form id="dz" ....
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.