Howdy, Stranger!

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

HTTP Error
  • Hi,

    I've just added the Uploadify script to a website and i'm having a problem with it.

    When I upload a file it get's too 100% and then I receive a 'HTTP Error' I uploaded it onto my other server which is hosted by someone else and the script worked fine.

    I thought it may be file permissions at first, so I set all the files in the Dir to 777 but i'm still getting the 'HTTP Error'.
    I spoke to the support team at our hosting company and they had a look over the permissions and said they are fine.

    Does anyone know a reason for the 'HTTP Error' ?

    Or what the error means so I can pass it on to the hosting support team.

    I had a search for this but couldn't find a solution.
  • HTTP error is the type. Look at the 'info' part of the errorObj. That will give you the error code
  • Have the same problem, but I dont see where can I get the errorObj?
  • PLEASE HELP ME WITH THIS ISSUE (PLEASE POST THE READY CODE HOW TO PRINT IT, SO I CAN FIND WHAT'S WRONG). I WOULD PUT HAKER-PROOF CODE IN PHP WHEN I FINISH THAT, BECAUSE IN DEFAULT IT'S A TOTAL DISASTER (SECURITY).

    Yes, I've got the same problem and I'm pinning to the question: HOW TO PRINT THE ERROR CODE. I've done in PHP something like this:

    switch($_FILES['Filedata']['error']) {
    case 1: die('The file is bigger than this PHP installation allows'); break;
    case 2: die('The file is bigger than this form allows'); break;
    case 3: die('Only part of the file was uploaded'); break;
    case 4: die('No file was uploaded'); break;
    case 6: die('Missing a temporary folder'); break;
    case 7: die('Failed to write file to disk'); break;
    case 8: die('File upload stopped by extension'); break;
    default: die('unknown error '.$_FILES['Filedata']['error']);
    }


    ----

    I've made a stunning discovery: the same script (on localhost) uploads files on IE, but prints: "HTTP ERROR" on CHROME. Can somebody ask me that question?

    How to print that error on Chrome? I couldn't find it in documentation.

    HTTP error is the type. Look at the 'info' part of the errorObj. That will give you the error code
    This doesn't tells me anything. Please give the code how to print it.
  • You can override onError function to get the detail error info,like this

    $('#uploadify').uploadify({
    ...
    ...
    ...
    'onError' : function(event, ID, fileObj, errorObj) {
    alert(errorObj.type+"::"+errorObj.info);
    }

    });

  • I get error:302 on Chrome, but on IE the file is uploaded fine.

    ----

    I think the script doesn't sees on Chrome the upload script. I'm using a http link, not a direct file for this purpose.


    'script' : '<% $URL %>my_account/ads/<% $r.id %>/upload',

    I can't use direct file or relative path for this purpose.

    How can I make it work? It only works as I put the direct link path to the file.

    What can I do to solve this problem?

    ---

    problem solved: reason for this error was mod_rewrite and inability of the script to access it

    you must put all instructions directly in uploadify.php file even if it's causing you to make some modifications in your code
  • I got:

    HTTP::405

    Any idea?
  • for noobs like me
    function something(event, ID, fileObj, errorObj) {
    alert(errorObj.type+"::"+errorObj.info);
    }
    ...
    ...
    'onError' : something
  • The user and all related content has been deleted.