Howdy, Stranger!

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

  • I am getting a 500 error (when installing the onError code)
    I've just installed the latest version (jquery.uploadify-v2.1.0 (MIT)). I've searched the forum and it doesn't seem that many other people are getting this error. All the files are inside the same directory. Not sure what else to do here.
  • The http status error code 500 means: Internal Server Error

    What server side technology are you using?
  • PHP? I'm using the code exactly as it came out of the box (other than customization) with nothing else on the page.
  • To find out more where your problem could be:
    Do you see the flash browse button?
    Are you able to select a file?
    Do you see the file queued or do you see the upload progress right away?

    If all above went well, the problem could be related to the PHP upload file.
    Does the upload folder exists? I can't think in something else because the PHP file looks really straight forward.

    I am sorry that I can't help more, I don't have any experience in PHP. I am a .NET developer. I would say to debug using your IDE, set some breakpoints in the PHP file and step into your code and find out where it is failing.
  • I have the same problem. I have tried several multiple uploaders and I always get the same error. Looks like it has something to do with my server or something.
    Even when I try the examples that are in the package my webserver won't upload any file.

    I can select a file and then the script begins uploading the file. It goes directly to 100% and than it says http error. I have put the onerror function in the php page and it says 'error: http info: 500'

    Can someone please help me with this cause I can't find anything wrong.

    Here's my code:

    <script type=\"text/javascript\" src=\"../uploadify/jquery-1.3.2.min.js\"></script>
    <script type=\"text/javascript\" src=\"../uploadify/swfobject.js\"></script>
    <script type=\"text/javascript\" src=\"../uploadify/jquery.uploadify.v2.1.0.min.js\"></script>
    <script type=\"text/javascript\">
    $(document).ready(function() {
    $('#fileInput').uploadify({
    'uploader': '../uploadify/uploadify.swf',
    'script': '../uploadify/uploadify.php',
    'folder': '../upload',
    'auto':true,
    'multi': true,
    'buttonText': 'Opladen',
    'cancelImg': ../uploadify/cancel.png',
    onError: function (a, b, c, d) {
    if (d.status == 404)
    alert('Could not find upload script. Use a path relative to: '+'<?= getcwd() ?>');
    else if (d.type === \"HTTP\")
    alert('Error:' + d.type+ ' Info: '+d.info);
    else if (d.type ===\"File Size\")
    alert(c.name+' '+d.type+' Limit: '+Math.round(d.sizeLimit/1024)+'KB');
    else
    alert('error '+d.type+\": \"+d.text);
    },
    onComplete: function(a, b, c, d, e){
    if (d !== '1')
    alert(d);
    }
    });
    });
    </script>

    <div id=\"fileQueue\"></div>
    <input type=\"file\" name=\"fileInput\" id=\"fileInput\" />
    <p><a href=\"javascript:jQuery('#fileInput').uploadifyClearQueue()\">Cancel upload</a></p>
  • Ya, I just started getting this as well. But the odd part of it all, it still uploads the file. Huh?!?!

    How and what I am using it for worked fine, so still going to assume it is something I did. But I find it odd that the file still uploads but then get an error 500. Showing upload is not complete, but is.
  • I love posting message. Because shortly after, I find my problem :)
    Was in my htaccess, and figured it was.

    Strange though, still uploaded before.
  • Ok, what the issue was.

    .htaccess has:
    <IfModule mod_php5.c>
    php_flag display_errors Off
    </IfModule>


    But the issue was inside my script, calling bad function. ajax_response. Should have been Functions::ajax_response.
    So when it could not find the function, it returned an error 500. Which now makes sense going through the entire upload, uploads then errors on the responses.

    So going to assume any script errors spit out will return an error 500. In which CGI gives you on errors ideally, while PHP tells you.
  • my problem with uploadify was also the 500-error .... i've done nearly every kind of solution that is written in this forum ... my solution, don't know if it's only a crazy server-configuration of mine, was to setup the folder from 777 to 775

    maybe it will help some of you, not getting mad ;-)
  • I am getting the same problem that Http 500 or sometimes IO error. i am using
    jquery-1.3.2.min.js, swobject.js, uploadify.js,uploadify.2.1.4.min.js. The browse button is comming i am able to select the file after the flash is comming it says 100% completed after that HTTP and file not saved.