refactor(file extractor): file extractor (#1059)
This commit is contained in:
parent
d3f8ea2df0
commit
d33a269548
4 changed files with 11 additions and 10 deletions
|
|
@ -78,7 +78,7 @@ const FileUploader = ({
|
|||
const isValid = useCallback((file: File) => {
|
||||
const { size } = file
|
||||
const ext = `.${getFileType(file)}`
|
||||
const isValidType = ACCEPTS.includes(ext)
|
||||
const isValidType = ACCEPTS.includes(ext.toLowerCase())
|
||||
if (!isValidType)
|
||||
notify({ type: 'error', message: t('datasetCreation.stepOne.uploader.validation.typeError') })
|
||||
|
||||
|
|
|
|||
|
|
@ -151,4 +151,4 @@ const DatasetUpdateForm = ({ datasetId }: DatasetUpdateFormProps) => {
|
|||
)
|
||||
}
|
||||
|
||||
export default DatasetUpdateForm
|
||||
export default DatasetUpdateForm
|
||||
Loading…
Add table
Add a link
Reference in a new issue