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.
onCancel returns null fileObj
  • I want csv filename of all uploaded files, my plan was to add filename to a hidden field when a file is uploaded and remove the name when the file is canceled. But after doing everything i just wont get the filename in the onCancel event. Turns out that onCancel is returning null fileObj. Everything else is working great. I am using v2.1.4, here is my script.

    var id = 1234;
    $(document).ready(function () {
    $('#fileInput').uploadify({
    'uploader': 'uploadify/uploadify.swf',
    'expressInstall': 'uploadify/expressInstall.swf',
    'script': 'Uploader.ashx',
    'scriptData': { 'id': id },
    'cancelImg': 'uploadify/cancels.png',
    'buttonImg': 'uploadify/addfile.png',
    'wmode': 'transparent',
    'width': 16,
    'height': 16,
    'auto': true,
    'multi': true,
    'fileDesc': 'All files',
    'fileExt': '*.*',
    'queueSizeLimit': 5,
    'sizeLimit': 4000000,
    'buttonText': 'browse',
    'removeCompleted': false,
    'queueID': 'queue12',
    'onComplete': function (event, queueID, fileObj, response, data) {
    var upf = document.getElementById('myHiddenField');
    upf.value = upf.value + fileObj.name + ',';
    },
    'onCancel': function (event, ID, fileObj, data) {
    alert(fileObj.name);
    }
    });
    });
  • somebody please help me!!!
  • ok i am giving up on this. I'll just hide cancel file button :(
  • Modify uploadify.js file.

    In document append part of onSelect action
    Add new line as below

    <span id="' + ID + '_file" style="display:none">' + fileObj.name + '</span>\

    then..

    use in the setting script
    'onCancel' : function (event, ID, fileObj, data ){
    alert( $("#"+ID+"_file").text() );
    }
  • The user and all related content has been deleted.
  • Yes, i have the same problem. I figured out, this happens when you use the 'auto': true option. While the file in queue, but not uploaded yet, you get back the fileObj object.

    But if the file is uploaded, then you will get a NULL for the fileObj, and data variable is not correct either. I did console.debugged the values, event, ID, fileObj, and data:

    Object { type="uploadifyCancel", timeStamp=1303206252555, more...}
    DAMQSV
    null
    Object { fileCount=0, allBytesTotal=0}