in reply to CGI: Uploaded binary file is corrupted
Did you try saving $resumefile as a normal file instead? It might be a database issue.