Added prepareFileUploadRequest