Home  >  Article  >  Backend Development  >  uploadify.js上传全部成功后刷新界面,如何实现

uploadify.js上传全部成功后刷新界面,如何实现

WBOY
WBOYOriginal
2016-06-23 13:08:271114browse

onUploadSuccess(file, data, response)函数好像是每次成功都会执行,有没有全部上传成功才执行的函数,我想全部上传成功在刷新本界面


回复讨论(解决方案)

本来就是多文件上传  没有判断你是否全部都上传完了

'onQueueComplete' : function(queueData) {
            //上传队列全部完成后执行的回调函数    
 } 

http://blog.sina.com.cn/s/blog_5079086b0101fkmh.html

其实这和你实际应用时的方式有很大关系
如果你并没有设计成一个上传文件列表,而是点一个算一个的话
你就没法知道哪个是最后

你可以对这个请求设置返回结果,如果成功或失败的话都做计数处理,设置maxtimeout,处理完后返回结果

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn