Fix integration tests for File.upload()