Topic: Passing custom parameter to uploads.php

Hello,

How do I pass custom parameter to the uploads.php ?

I have tried the following:

<script type="text/javascript">
    $(document).ready(function () {
        $(function () {
            $("#uploader").pluploadQueue({
                runtimes: 'html5',
                my_custom_parameter: 'Value goes here',

and in the uploads.php:

$var = isset($_REQUEST["my_custom_parameter"]) ? $_REQUEST["my_custom_parameter"] : 'Value is empty';

But it is not working, any ideas? thank you

Re: Passing custom parameter to uploads.php

I figure it out,

I had to use "multipart_params" here is what I did:

multipart_params: {parameter_1 : "value", parameter_2: "value  2", parameter_3: "Value 3"}

and the upload.php


$my_value = isset($_REQUEST["parameter_1"]) ? $_REQUEST["parameter_1"] : ' Value is empty';