Howdy, Stranger!

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

Stops after one upload
  • Hi all!

    I have a weird problem. Everything works on my home machine but when I upload to the server uploadify will upload first picture and then stop. The picture is uploaded and uploadify.php script is run. I know that because there's an entry in the table. Problem is it doesn't run onAllComplete. I've tried putting alerts in onComplete, onError and onAllComplete and nothing shows up, it just stops. Sometimes even pressing "Upload" button doesn't to anything (looks like this: <a href="javascript:$('#uploader').uploadifyUpload()" ). Note that clearQueue button works.
    Again, these problems only occur on remote server.

    My call looks like this:

    /* uploadify setup */
    $('#uploader').uploadify({
    'uploader' : '/uploadify/uploadify.swf',
    'script' : '/uploadify/uploadify.php',
    'cancelImg' : '/uploadify/cancel.png',
    'folder' : '/pictures',
    'auto' : false,
    'buttonImg' : '/uploadify/uploadImg.png',
    'width' : '70',
    'height' : '49',
    'expressInstall' : '/uploadify/expressInstall.swf',
    'wmode' : 'transparent',
    'displayData' : 'percentage',
    'fileDataName' : 'uploaded',
    'fileExt' : '*.jpg;*.gif;*.png',
    'fileDesc' : 'Pictures (jpg, png, gif)',
    'multi' : true,
    'rollover' : true,
    'scriptData': {'sID':'37b23b8c802b226492a6e812da604678'},
    'onComplete' : function(event, ID, fileObj, response, data) {
    alert(response);
    },
    'onAllComplete' : function (event, data) { alert(data);
    $.ajax({
    type: "POST",
    url: "/getPictures.php",
    dataType: "html",
    data: "sID=37b23b8c802b226492a6e812da604678",
    success: function(data){
    $("#upDatList").html(data);
    }
    });
    }
    });


    Again, everything works perfectly on my home mashine.

    Help please :)
  • I have exactly the same issue. My home system is based on a windows xampp machine. My webserver is based on a gentoo linux. While it's working perfectly on the xampp it is just uploading the first file on the remote webserver. The file is being processed (multiple image sizes) and I can see the new files in the right directories. But then it stops - no "Completed!" appears.

    At first I thought the "check.php" can't get the file informations to send the right JSON-Data-Array. So I "hardcoded" a fake string at the end of the check.php ... but it doesn't work too.

    I also tried the new v3.0.0. This one seems to work but I don't know how to handle the "onUploadComplete" Event, because there is no further documentation. Your help is highly appreciated. :)

  • Okay, finally (was already thinking about giving up ;) ) I've found the solution (but nut the problem ;) ).

    And the end of my modified "uploadify.php" I put this line:

    echo str_replace($_SERVER['DOCUMENT_ROOT'],'',$targetFile);

    I don't know why it still work on my home server without this filename echo.