Get the App
SLTechnology News&Howtos  ›  Development  › 

How to implement the SWFUpload plug-in for File upload

Shulou Source: shulou.com Published: 2022-06-03 09:29:32 11月15日 Update

This article introduces the relevant knowledge of "how to implement the file upload SWFUpload plug-in". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The specific code is as follows:

1. Foreground file index.html SWFUpload var swfu _ window.onload = function () {var settings = {flash_url: "swfupload/swfupload.swf", upload_url: "upload.php", / / stage post_params: {"PHPSESSID": "}, file_size_limit:" 100 MB ", file_types:" *. * ", file_types_description:" All Files ", file_upload_limit: 100, file_queue_limit: 0 Custom_settings: {progressTarget: "fsUploadProgress", cancelButtonId: "btnCancel"}, debug: false, / / Button Settings button_image_url: "images/TestImageNoText_65x29.png", / / Flash style picture file button_width: "65", button_height: "29", button_placeholder_id: "spanButtonPlaceHolder", button_text: 'browse' Button_text_style: ".theFont {font-size: 16 } ", button_text_left_padding: 12, button_text_top_padding: 3, / / handle setting 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} Swfu = new SWFUpload (settings);}; SWFUpload v2.2.0

Click the "Browse" button and select the document file you want to upload, and the system will automatically upload it and prompt you when it is finished.

Do not upload files containing Chinese file names!

Quick upload 0 files have been uploaded

Tags: Files tests plug-ins success content background buttons file names more knowledge browsing output utility learning next code location foreground variables handles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Xiaomi Docker OPPO Reno Huawei