Hi to all,
Today googling around for some suitable file upload solution for my next project, I found this awesome script and immediately fell in love with it
Great work guys!
Anyway, I tried every solution from the demos and almost everything works as I want.
Except one thing that causing me headaches: When I try to upload a file with a same name as the one already uploaded, I got strange alert window saying error 500 and nothing else.
But when I tried the normal test.php upload form then I receive right message saying that the "File with that name already exist". How can I make this error message appear instead of that weird 500 Error alert message? Or how can I implement this script to automatically rename files when with the same name? Anyone there knows some working solution?
Am I missing something here? I'm sure I'm missing a lot 
Thanks in advance!
March 30, 2008 - 10:32pm
SWFUpload is receiving an HTTP 500 error and is reporting an uploadError with the HTTP error code and message. Flash Player will not return any of the other server data when an HTTP error occurs so you can't get any of the nice text.
The sample files send the text just because it's helpful when debugging (packet captures or HTML forms) not because SWFUpload can see it.
You can update your upload script to return a 200 status code and an error message and then handle errors manually in the uploadSuccess event. SWFUpload will think the upload was successful (after all the server sent back a success HTTP status code).
You should be able to tweak the PHP code to rename the file or overwrite the existing file. www.php.net is a good resource.