tags:

views:

71

answers:

1

Hi

I'm using "plupload" plugin.

I have this input form :

<div id="flash_uploader" style="width: 610px; height: 330px;">You browser doesn't have Flash installed.</div><input type="text" name="categorie" id ="categorie" value="" /><input type="submit" value="send" />

I try to get the value of "categorie" with "multipart_params" but this doesn't work !

$("#flash_uploader").pluploadQueue({
    // General settings
    runtimes : 'flash',
    url : '../scripts/plupload/examples/upload.php',
    max_file_size : '700kb',
    chunk_size : '1mb',
    unique_names : false,
    multi_selection : true,
    multipart : true,
    multipart_params : {categorie : $('#categorie').val()},
    filters : [
        {title : "Image files", extensions : "jpg,png"}
    ],
    // Resize images on clientside if we can
    resize : {width : 550, height : 550, quality : 94},
    // Flash settings
    flash_swf_url : '../scripts/plupload/js/plupload.flash.swf'
});

How can I send the input "categorie" value in the pluploadQueue to ../scripts/plupload/examples/upload.php ?

Thanks for your help...

A: 

You need to name the parameter, so unless you have a javascript variable named categorie with the value "categorie" it won't work.

multipart_params : {'categorie' : $('#categorie').val()},
Per Hornshøj-Schierbeck