2
我有一个弹出窗口模式。我需要每次弹出打开它将只允许1个成功的文件上传。这意味着如果再次弹出打开(不刷新页面),它将允许再次单个文件上传。 现在,这是我的代码 -jquery-file-upload progressbar moving backward
if(typeof fileuploadobj != 'undefined') {
jQuery('#fileupload table tbody tr.template-download').remove();
jQuery('#fileupload table tbody tr.template-upload').remove();
//fileuploadobj.destroy;
// jQuery("#fileupload").fileupload('destroy');
}
// Initialize the jQuery File Upload widget:
fileuploadobj = jQuery('#fileupload').fileupload({
acceptFileTypes: /(.+wav)/i,
dropZone: jQuery('.upload_dropzone'),
autoUpload: true,
maxNumberOfFiles: 1,
formData: {some_id: 999}
});
现在每个甚至上传(第2,第4等),进度条移动从右到左。 如何解决这个问题。 请帮忙。