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. |