SWFUpload事件触发顺序研究

SWFUpload(2.2.0)常见的事件有:

function swfupload_loaded_handler();
function file_dialog_start_handler();
function file_queued_handler(file);
function file_queue_error_handler(file, errorCode, message);
function file_dialog_complete_handler(numFilesSelected, numFilesQueued, numFilesInQueue);
function upload_start_handler();
function upload_progress_handler(file, bytesComplete, bytesTotal);
function upload_error_handler(file, errorCode, message);
function upload_success_handler(file, serverData, responseReceived);
function upload_complete_handler(file);

正常上传文件日志:

引用内容 引用内容
swfupload_loaded_handler:
file_dialog_start_handler:
file_queued_handler: PHPnow-1.5.4.zip
file_dialog_complete_handler: 1,1,1
upload_start_handler:
upload_progress_handler: PHPnow-1.5.4.zip,0,15930991
upload_progress_handler: PHPnow-1.5.4.zip,32768,15930991
upload_progress_handler: PHPnow-1.5.4.zip,360448,15930991
upload_progress_handler: PHPnow-1.5.4.zip,491520,15930991
upload_progress_handler: PHPnow-1.5.4.zip,622592,15930991
upload_progress_handler: PHPnow-1.5.4.zip,720896,15930991
upload_progress_handler: PHPnow-1.5.4.zip,753664,15930991
upload_progress_handler: PHPnow-1.5.4.zip,1114112,15930991
upload_progress_handler: PHPnow-1.5.4.zip,1638400,15930991
upload_progress_handler: PHPnow-1.5.4.zip,1966080,15930991
upload_progress_handler: PHPnow-1.5.4.zip,3506176,15930991
upload_progress_handler: PHPnow-1.5.4.zip,4423680,15930991
upload_progress_handler: PHPnow-1.5.4.zip,4784128,15930991
upload_progress_handler: PHPnow-1.5.4.zip,7307264,15930991
upload_progress_handler: PHPnow-1.5.4.zip,8093696,15930991
upload_progress_handler: PHPnow-1.5.4.zip,8224768,15930991
upload_progress_handler: PHPnow-1.5.4.zip,9404416,15930991
upload_progress_handler: PHPnow-1.5.4.zip,9895936,15930991
upload_progress_handler: PHPnow-1.5.4.zip,10485760,15930991
upload_progress_handler: PHPnow-1.5.4.zip,11108352,15930991
upload_progress_handler: PHPnow-1.5.4.zip,13959168,15930991
upload_progress_handler: PHPnow-1.5.4.zip,15302656,15930991
upload_progress_handler: PHPnow-1.5.4.zip,15433728,15930991
upload_progress_handler: PHPnow-1.5.4.zip,15564800,15930991
upload_progress_handler: PHPnow-1.5.4.zip,15761408,15930991
upload_progress_handler: PHPnow-1.5.4.zip,15930991,15930991
upload_success_handler: PHPnow-1.5.4.zip,,undefined
upload_complete_handler: PHPnow-1.5.4.zip

出错时日志:

swfupload_loaded_handler:
file_dialog_start_handler:
file_queue_error_handler: 疯狂的赛车A.rmvb,-110,File size exceeds allowed limit.
file_dialog_complete_handler: 1,0,0


说明

·当关闭打开文件对话框或没有选择文件时,调用startUpload方法都不会触发upload_start_handler事件;

评论: 0 | 引用: 0 | 查看次数: 6980
发表评论
登录后再发表评论!