Just in case it helps anyone...perhaps worth mentioning in the docs...
Flash for Firefox on Mac apparently manipulates $_SERVER['HTTP_HOST'] somehow, and the server port (:80) is tacked onto the $_SERVER['HTTP_HOST'] variable value. So if your upload script uses that variable, you'll need to account for the port being tacked on the the host URL.