I have been using dropzone to upload the image file on my localhost. Everything is working fine, file is being uploaded and saved, however, the progress bar is not replaced by the tick mark. It stays there.
Here is a screenshot
在这种情况下可能是什么问题,这是我的 dropzone 代码
Dropzone.options.myAwesomeDropzone = {
paramName: "userPhoto", // The name that will be used to transfer the file
maxFilesize: 20, // MB
maxFiles: 1,
acceptedFiles: ".jpeg,.jpg",
dictDefaultMessage: 'Drag an image here to upload, or click to select one',
accept: function (file, done) {
done();
},
};
use res.end('File have been uploded')
在您路线的尽头。使用 dropzone 时,如果未触发 res.end,则不会确认文件已上传。因此动画不起作用
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)