I'm using uploadify straight out of the box, I havnt modified it in any way. It's uploading files great, so now I've got that sorted I wanted to sort out what happens if the file doesn't upload for any reason. I deleted the upload directory from the server so that the file can't be uploaded and tested what would happen. Unfortunately the uploader still says the file has been completed even though no upload directory exists, and the file hasnt been uploaded. I then modified the uploadify.php script so that the file doesn't get saved if it's the wrong file format. This worked great and prevented any files in the wrong format from being saved however the uploader still says the upload is complete. Does anyone know why this might be and what I can do to force an error?
Thanks
Found sort of a solution here:
http://www.uploadify.com/forums/discussion/6940/problems-triggering-onerror/#Item_4
at the bottom.
Basically it says if you want to return an error then do:
header("HTTP/1.0 404 Not Found");
exit;
It's a bit of a hack though because it might not be a 404 error you wish to return. It does the job though