SWFUpload 1.0.2

SWFUpload

A small javascript/flash library to get the best of both worlds - The great upload capabilitys of flash and the accessibility and ease of html/css

Das Ganze hat eine Reihe von hooks und Callbacks zum Anpassen an eigene Vorstellungen. Sehr cool!


var swfu;

window.onload = function() {

	swfu = new SWFUpload({

		upload_script : "/upload.php?id=someid",

		target : "SWFUploadTarget",

		flash_path : "/jscripts/SWFUpload/SWFUpload.swf",

		allowed_filesize : 30720,	// 30 MB

		allowed_filetypes : "*.*",

		allowed_filetypes_description : "All files...",

		browse_link_innerhtml : "Browse",

		upload_link_innerhtml : "Upload queue",

		browse_link_class : "swfuploadbtn browsebtn",

		upload_link_class : "swfuploadbtn uploadbtn",

		flash_loaded_callback : 'swfu.flashLoaded',

		upload_file_queued_callback : "fileQueued",

		upload_file_start_callback : 'uploadFileStart',

		upload_progress_callback : 'uploadProgress',

		upload_file_complete_callback : 'uploadFileComplete',

		upload_file_cancel_callback : 'uploadFileCancelled',

		upload_queue_complete_callback : 'uploadQueueComplete',

		upload_error_callback : 'uploadError',

		upload_cancel_callback : 'uploadCancel',

		auto_upload : false

	});

};

Possibly related posts (automatically generated)