1. Register a user 2. Enter space-album-upload 3. Use oprea to live firefox to modify the source code scripttypetextjavascriptvarswfu; SWFUpload. onloadfunction () {varsettings {flash_url: http: Upload, upload_u
1. Registered users
2. Choose space> album> upload.
3. Use oprea to activate firefox to modify the source code
-
ext/javascript">
- var swfu;
- SWFUpload.onload = function () {
- var settings = {
- flash_url : "http://www.xxx.com/shuku/modules/space/include/swfupload/swfupload.swf",
- upload_url: "http://www.xxx.com/shuku/modules/space/include/swfupload/upload.php", // Relative to the SWF file
- post_params: {
- "catid" : "208",
- "uid" : "320"
- },
- file_size_limit : "2 MB",
- file_types : "*.jpg;*.jpeg;*.gif;*.png;*.bmp",
- file_types_description : "Images",
- file_upload_limit : 100,
- file_queue_limit : 0,
- custom_settings : {
- progressTarget : "fsUploadProgress",
- cancelButtonId : "btnCancel"
- },
- debug: false,
-
- // Button Settings
- button_image_url : "http://www.xxx.com/shuku/modules/space/include/swfupload/upload.gif", // Relative to the SWF file
- button_placeholder_id : "spanButtonPlaceholder",
- button_width: 71,
- button_height: 21,
-
- // The event handler functions are defined in handlers.js
- swfupload_loaded_handler : swfUploadLoaded,
- file_queued_handler : fileQueued,
- file_queue_error_handler : fileQueueError,
- file_dialog_complete_handler : fileDialogComplete,
- upload_start_handler : uploadStart,
- upload_progress_handler : uploadProgress,
- upload_error_handler : uploadError,
- upload_success_handler : uploadSuccess,
- upload_complete_handler : uploadComplete,
- queue_complete_handler : queueComplete, // Queue plugin event
-
- // SWFObject settings
- minimum_flash_version : "9.0.28",
- swfupload_pre_load_handler : swfUploadPreLoad,
- swfupload_load_failed_handler : swfUploadLoadFailed
- };
- swfu = new SWFUpload(settings);
- }
-
-
Change file_types *. jpg *. gif to *. * to upload any file.