Support passing custom headers when uploading files.