Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

fileDataName, not actually bug
  • I found the oddest behavior in this plugin.
    The plugin itself is great and I'm going to use it in every project that involves uploading files.
    But I ran into odd behavior with fileDataName. It has default value of "Filedata", which isn't debugging friendly at all.

    I spent some time wondering why my upload isn't working, until I noticed that.

    There is really simple solution for this, just edit jquery.uploadify.vXXX.js a little bit.
    Look at line 42 (ish) for the following code
    fileDataName   : 'Filedata', // The name of the file collection object in the backend upload script

    Replace it with:
    fileDataName   : jQuery(this).attr('name'), // The name of the file collection object in the backend upload script


    Then the default value is automatically the input value of your file input.