dropzone的“tick”标记没有显示?

时间:2018-03-04 07:40:12

标签: jquery node.js dropzone.js

我一直在使用dropzone在我的localhost上上传图像文件。一切正常,文件正在上传和保存,但是,进度条不会被刻度线替换。它留在那里。 这是一个截图 This is what being shown

在这种情况下可能出现什么问题,这是我的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();
        },

    };

1 个答案:

答案 0 :(得分:0)

在路线的末尾使用res.end('File have been uploded')。使用dropzone时,如果未触发res.end,则不会确认已上载文件。因此动画无效