revert INVALID_FILE_TYPE error change
This commit is contained in:
parent
564b822dbf
commit
62a6b5963b
|
@ -60,7 +60,11 @@ export async function getFileType(
|
|||
fileFormat,
|
||||
});
|
||||
}
|
||||
throw Error(CustomError.INVALID_FILE_TYPE(fileFormat));
|
||||
return {
|
||||
fileType: FILE_TYPE.OTHERS,
|
||||
exactType: fileFormat,
|
||||
mimeType: receivedFile instanceof File ? receivedFile.type : null,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,6 @@ export const CustomError = {
|
|||
HIDDEN_COLLECTION_SYNC_FILE_ATTEMPTED:
|
||||
'hidden collection sync file attempted',
|
||||
UNKNOWN_ERROR: 'Something went wrong, please try again',
|
||||
INVALID_FILE_TYPE: (type: string) => `invalid file type- ${type}`,
|
||||
};
|
||||
|
||||
function parseUploadErrorCodes(error) {
|
||||
|
|
Loading…
Reference in a new issue