class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I think it has worked. It seemed to work for me using FF2, but someone else using IE6 was still having problems - that could be some caching issue though....
In the end (time was against me) I resorted to testing the mime type variable and if it was empty then I just display a direct link to the file with instructions to right-click and save as....Reply
This has the side effect of stopping say pdf files from being downloaded correctly....
Is it working now?
In the end (time was against me) I resorted to testing the mime type variable and if it was empty then I just display a direct link to the file with instructions to right-click and save as....