UPLOAD_ERR_PARTIAL
Value: 3; The uploaded file was only partially uploaded.
As to why it fails, you would need to post your code.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Are you sure? I could be wrong, but doesnt cPanel use ajax? on that you are able to upload files in the browser without refreshing in cPanel 11 on the file upload part
I've checked mahmoud82's code, and I would not suggest using it. IF it worked, then only on IE (because it requires ActiveX), and besides that, I don't see how this would work at all. It sends headers to the PHP script, but not the actual file.
There are better scripts out there. Try Googling for another one. (If you search for "AJAX Upload", you'll find scripts, even though none of them actually uploads using AJAX)
I'll echo what Nico has stated. Uploads using a HTML form without refreshing the page are done with a hidden iframe. Search for Ajax file upload scripts to find many examples.
Another way of doing this so that the page does not reload is to use flash - http://www.swfupload.org/
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???