Prepare file and compressed file paths and mime upfront; ensure uploading correct body