Search code examples
phpflashswfupload

post param usage for SWFUpload?


hi can someone explain how the post_param is used in SWFUpload. i need the value for name='batchid' loaded when i submit. this is what the example doc shows

post_params : {
    "post_param_name_1" : "post_param_value_1",
    "post_param_name_2" : "post_param_value_2",
    "post_param_name_n" : "post_param_value_n"
},

Solution

  • Have you tried:

    post_params : {
        "name" : "batchid"
    }
    

    If batchid is a variable (I'm guessing so) define it using your php and call it as a normal js var:

    post_params : {
        "name" : batchid
    }