IO-2039 LMS support for non media files.

This commit is contained in:
Patrick Fic
2022-09-08 10:03:24 -07:00
parent ba9ea17805
commit 5f3c1fc95e
2 changed files with 9 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ export function DocumentsLocalUploadComponent({
vendorid,
invoice_number,
callbackAfterUpload,
allowAllTypes,
}) {
const [fileList, setFileList] = useState([]);
@@ -52,7 +53,9 @@ export function DocumentsLocalUploadComponent({
},
})
}
accept="audio/*, video/*, image/*, .pdf, .doc, .docx, .xls, .xlsx"
{...(!allowAllTypes && {
accept: "audio/*, video/*, image/*, .pdf, .doc, .docx, .xls, .xlsx",
})}
>
{children || (
<>