This forum is a community forum meant for users of the plugin to collaborate and help solve issues with implementation, etc. Unfortunately, as the creator of the plugin, I do not have much time to attend to every request here as this is only a side project and I must work a full-time job to provide for my family. This is how I keep the Flash version free and the HTML5 version low cost.
UploadiFive 1.1.1 has been released which includes a small fix for added support on touch devices including iOS 6 devices.
Script data varies
  • So I want to pass other data when I upload my file to add things to a database. I understand you can use scriptData to send other data, but the data I'm sending is based on a form.

    'scriptData' : {'entry_title':$("#entry_title").val()},
    This does not send anything to the upload script and is not added to the DB.

    'scriptData' : {'entry_title':'title'},
    This sends "title" and it is added to the DB, so I know the mysql is working.

    'scriptData' : {'entry_title':'$("#entry_title").val()'},
    This sends "'$("#entry_title").val()", which is not what I want.

    So, how do I get it to send variables across the script?
  • Hi, you may want to read the following thread:
    http://www.uploadify.com/forum/viewtopic.php?f=7&t=2108
  • Well that works, the data is added to the database. But with these settings, the upload never runs onComplete function.

    $('#entry_image').uploadifySettings('scriptData', {'entry_title':$("#entry_title").val(),
    'entry_type':$("#entry_type").val(),
    'entry_comment':$("#entry_comment").val()});

    If I only have 2 pieces of data, onComplete runs. If I have the 3 I posted, onComplete never happens so it looks like the data is taking forever to complete when everything is actually done(all data is added tot the database and the file is uploaded).
  • make sure your ID is spelt correctly on both your element and within the $('ID').val() It will take just one incorrect letter to cause a failure
  • I just get an error with correct syntax for uploadifySettings:

    This, by example, will not work when up to trigger the uploader:

    $('#fileUpload').uploadifySettings('width', 400);

    But my real problem is for another var, for the one we are posting about:

    $('#fileUpload').uploadifySettings('scriptData', {'sub' : $('#foto img').attr('src') });

    $('#fileUpload').uploadifySettings('scriptData', {'sub' : 'd' });

    Those senteces causes error on IE8 when a function triggers them.

    Only thing that worked for my is this line on the main object launch:

    'scriptData': {'sub' : "h" },

    but when using this with a ver, causes error because it's not really actualized and just says "undefined".

    'scriptData': {'sub' : $('#foto img').attr('src') },


    Any help?