Changed api for file upload.