小编Mat*_*tty的帖子

Uploadify随意挂100%

我使用Uploadify使我的用户能够通过我的Web应用程序上传图像.

我遇到的问题是,当进度条达到100%时,它偶尔会出现(似乎是随机的),它会"挂起"并且什么都不做.

我想知道是否有任何熟悉uploadify的开发人员可能知道如何解决这个问题?我迫切需要一些帮助.

这是我的前端代码:

<javascript>
jQuery(document).ready(function() {
 jQuery("#uploadify").uploadify({
  'uploader'       : 'javascripts/uploadify.swf',
  'script'         : 'upload-file2.php',
  'cancelImg'      : 'css/images/cancel.png',
  'folder'         : 'uploads/personal_images/' + profileOwner,
  'queueID'        : 'fileQueue',
  'auto'           : true,
  'multi'          : true,
  'fileDesc'       : 'Image files',
     'fileExt'        : '*.jpg;*.jpeg;*.gif;*.png',
  'sizeLimit'      : '2097152',
  'onComplete': function(event, queueID, fileObj, response, data)
  {
   processPersonalImage(fileObj.name);
   arrImgNames.push(fileObj.name);
   showUploadedImages(true);
   document.getElementById("photos").style.backgroundImage = "url('css/images/minicam.png')";
  },
  'onAllComplete'  : function()
  {
     completionMessage(arrFailedNames);
     document.getElementById("displayImageButton").style.display = "inline";
     document.getElementById("photos").style.backgroundImage = "url('css/images/minicam.png')";
  },
  'onCancel'  : function()
  {
     arrImgNames.push(fileObj.name);
     arrFailedNames.push(fileObj.name);
     showUploadedImages(false);
  },
  'onError'  : function() …
Run Code Online (Sandbox Code Playgroud)

javascript php jquery uploadify

8
推荐指数
1
解决办法
2775
查看次数

标签 统计

javascript ×1

jquery ×1

php ×1

uploadify ×1