木子屋 Dnawo's BLOG

SWFUpload事件触发顺序研究

👤 dnawo 📅 2009-11-05 👁 7625 👍 0 💬 0 🔄 来源:本站原创
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)

暂无评论。

计算题
评论需审核通过后显示
← 上一篇 建立特殊的windows文件夹 下一篇 → JavaScript和ActionScript函数相互调用示例