Other parameters of the transfer form for SWFupload File Upload

Source: Internet
Author: User

In the past, we used SWFupload to upload files directly, and then the parameters were processed separately. Next I will introduce other parameters for passing the form using SWFupload.

On the upload page, the value is always not obtained. Later, a fellow in oschina provided three methods, and the third method was used and the test was successful.

1. Add a connection after the url:

The Code is as follows: Copy code

Upload_url: "upload? Action = up ",


2. Use swfupload to pass the parameter and configure it in setting.

The Code is as follows: Copy code

Post_params :{
"Hello": "Here I Am ",
"Name": "Zhang San ",
"Ff": document. getElementById ("tf"). value
},
Use_query_string: true,
// You need to pass the configuration used by the parameter. I didn't test whether it is necessary.

3. functions using swfupload:

The Code is as follows: Copy code

AddPostParam ("myFileName", encodeURI (file. name); // you can set the value of $ _ POST [] directly on the upload page.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.