Allow images and documents
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -122,11 +122,23 @@ export default function MeasureEvidencesTab() {
|
|||||||
return (
|
return (
|
||||||
<div className="space-y-6">
|
<div className="space-y-6">
|
||||||
<Dropzone
|
<Dropzone
|
||||||
description={__("Only PDF files up to 10MB are allowed")}
|
description={__(
|
||||||
|
"Only PDF, DOCX, XLSX, PPTX, JPG, PNG, WEBP files up to 10MB are allowed"
|
||||||
|
)}
|
||||||
isUploading={isUpdating}
|
isUploading={isUpdating}
|
||||||
onDrop={handleDrop}
|
onDrop={handleDrop}
|
||||||
accept={{
|
accept={{
|
||||||
"application/pdf": [".pdf"],
|
"application/pdf": [".pdf"],
|
||||||
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
||||||
|
[".docx"],
|
||||||
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [
|
||||||
|
".xlsx",
|
||||||
|
],
|
||||||
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation":
|
||||||
|
[".pptx"],
|
||||||
|
"image/jpeg": [".jpg", ".jpeg"],
|
||||||
|
"image/png": [".png"],
|
||||||
|
"image/webp": [".webp"],
|
||||||
}}
|
}}
|
||||||
maxSize={10}
|
maxSize={10}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user