Howdy, Stranger!

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

Reporting Upload Issues
  • Hello,

    I recently started using Uploadify and I need some help with error reporting.

    I am using Uploadify the upload company logo's, I have added the validation into the php file and when there is an error it may echo (depending on the error) something like "File to big" and the file will not be moved to its permanent location

    Regardless of this on screen the upload bar still shows and when it gets to the end the progress bar disappears and my error message is know where to be seen.

    Is there a way I can get these errors to display.

    Also I would like to name the image the name of the organisation, so I need a way to pass my own variable to the uploadify.php script, is this possible as I cannot see anything like this in the documentation.

    Many Thanks
    Simon
  • I second this request.

    My PHP script returns

    - Upon failure, a text message containing an error message
    - Upon success, the number 1 just like in the sample php script.

    How do I get uploadify to recognize when the PHP script encounters errors and/or pass on the error message to a callback script.

    Thanks
  • Mr Binky,

    I solved the first part of my issue, it should help you, in your uploadify init just put this

    'onComplete': function(e,q,f,r,d) {
    alert(r);
    }

    I still need some help with passing values to the uploadify script
  • I would like to know a solution too, has the exact same problem as mrbinky3000.

    SimonJ's solution is not that good for me, cause it will return the number 1 too, so if you have 20 uploads you have 20 alerts you gonna take care off.

    a better solution would be: if the php script has a response that isn't 1 then it should show the response same way uploadify handles files larger than "fileSize".

    The problem is that onError only is triggered when there is an error in the flash part, an onBackendError or a modification of the onError would be very useful.
  • There's a onAllComplete callback. But i don't trust it. Even when i return 1 for some upload and any other message for errors, they all are contemplated as successful uploads.