Uploadify uploadSettings with scripData does not work
        Posted  
        
            by kubilayeksioglu
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by kubilayeksioglu
        
        
        
        Published on 2010-05-12T14:36:18Z
        Indexed on 
            2010/05/12
            14:44 UTC
        
        
        Read the original article
        Hit count: 380
        
Hi everyone,
I am sending a file to my Java Servlet via jQuery Uploadify, there are no problems while sending the actual file. But when I try to send some scriptData with file along, to process on Servlet it just does not send anything.
Here is the JS code:
$("button").click(function(){
        $("#uploadify").uploadifySettings('scriptData', {'length':'0.2'});
        $('#uploadify').uploadifyUpload();
});
$('#uploadify').uploadify({
    'uploader': 'assets/uploadify/uploadify.swf',
    'script': 'upload',
    'folder': '/uploads'
});
And here is the Servlet code on the server side:
out.println(res.getParameter("length"));
Only output I get is null, while expecting "0.2". I just cannot get what's wrong and any kind of help will be appreciated. 
Thanks in advance.
© Stack Overflow or respective owner