swfUpload上传大文件时半天没有反应??
本帖最后由 庄子 于 2013-2-4 16:33 编辑用swfupload制作了上传进度条, 当直接选择大文件时,半天都没有反应
但如果先上传一个小文件,然后再选择一个大文件上传,就会显示进度条等,这是为什么呢?
本地上传很快的,所以,一下子就上传完了
服务器上,因为上传慢,所以,一定要显示进度条的,但是当直接选择大文件后,半天没有反应,郁闷
网址:http://www.chinaispo.com.cn/zt/zhaomuling 下面
上传第一个文件时,不显示进度条?
亲,一定是js有错了,用debug模式调试一下吧 我用debug显示对比了,第一个不显示进度条,第二个就会显示进度条
以下是debug的代码:、
---SWFUpload Instance Info---
Version: 2.5.0 2010-01-15 Beta 2
Movie Name: SWFUpload_0
Settings:
upload_url: http://localhost:86/zt/swfupadd/shangchuan/cc935237a422c083e8b84e017cda415b
flash_url: http://localhost:86/js/swfuploadadd/swfupload.swf?preventswfcaching=1359966465374
flash9_url: http://localhost:86/js/swfuploadadd/swfupload_FP9.swf?preventswfcaching=1359966465374
use_query_string: false
requeue_on_error: false
http_success:
assume_success_timeout: 0
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.rar;*.zip;
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: StartUpload(): Upload Type: Normal.
SWF DEBUG: Global Post Item: PHPSESSID=cc935237a422c083e8b84e017cda415b
SWF DEBUG: Global Post Item: authkey=c8c228ea4c79abffffcb436d780a5530
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for standard upload.Starting upload to http://localhost:86/zt/swfupadd/shangchuan/cc935237a422c083e8b84e017cda415b for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4536. Total: 4536
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data: FILEID:201302044274823326.zip|/up/pic/201302/04/201302044274823326.zip
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.rar;*.zip;
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_1
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_1
SWF DEBUG: StartUpload(): Upload Type: Normal.
SWF DEBUG: Global Post Item: PHPSESSID=cc935237a422c083e8b84e017cda415b
SWF DEBUG: Global Post Item: authkey=c8c228ea4c79abffffcb436d780a5530
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for standard upload.Starting upload to http://localhost:86/zt/swfupadd/shangchuan/cc935237a422c083e8b84e017cda415b for File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 818. Total: 818
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_1 Response Received: true Data: FILEID:20130204427507189.zip|/up/pic/201302/04/20130204427507189.zip
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
页:
[1]