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.
uploadify 3.0 missing post data after file uploads
  • I recently implemented uploadify v 3.0 beta for a project and have (hopefully) a small issue. Using the examples that were provided with the download, everything works fine expect the post file data is not always appearing after all files in the queue have been uploaded (successfully).

    I added in an alert to this section for trouble shooting:

    onUploadSuccess : function(file,data,response) {
    $("#myForm").append("<input type=\'hidden\' id=\'img_"+file.id+"_fileName\' name=\'img_"+file.id+"_fileName\' value=\'"+data+"\' />"); // INSERT IMAGE FILENAME IN A HIDDEN FORM FIELD
    // this is what I added to check if file data was being appended, it is alerting all file data from the queue
    alert(file.id + " : " + data);
    }
    onQueueComplete: function (stats) {
    $(\'#myForm\').submit(); // THIS IS AN EXAMPLE, YOU CAN SUBMIT YOUR INFOS WITH AJAX IF YOU WANT
    }


    The file data is being appended to the form, or at least uploadify is attempting to do it initially. All files are uploading fine, they do wind up in the proper place on the server. The problem is PHP is not reliably seeing/receiving these hidden file fields that uploadify is attempting to append to the original form prior to final submission. If the files are small (~300kB) it seems to work as it should with up to about 8 files, then I start seeing the appended file data disappear starting with the first items in the queue. With larger files (~3mB) I only seem to get the file data appended for the last one in the queue.

    For example, if I add 3 1MB files to the queue, they will all upload to the server folder fine, but when the form is submitted back to the server, PHP only sees:

    [img_SWFUpload_0_1_fileName] => p1010280.jpg
    [img_SWFUpload_0_2_fileName] => p1010287.jpg

    What happened to the POST data key "img_SWFUpload_0_0_fileName"? The file is on the server.

    // relavent Uploadify settings:
    'fileSizeLimit' : 50*1024, // MB
    'queueSizeLimit' : 20

    // relavent php settings set via htaccess:
    php_flag session.auto_start on
    php_flag file_uploads on
    php_value upload_max_filesize 60M
    php_value post_max_size 60M



    Can anyone shed any light on this? Any ideas?

    thanks
  • I haven't fixed it, but I have identified the problem thanks to adammada:
    http://www.uploadify.com/forums/discussion/comment/15733/#Comment_15733

    This is a show stopper for a lot of folks I'm sure. It fairly common to upload more than 9 files. In addition to the fix suggestion by adammada, you can work around it by setting 'removeCompleted' : false.
    It gets things working without tinkering with the source.