Changed the curl file upload routine from '@file' to curlfile.