diff --git a/apps/admin-x-design-system/src/global/form/FileUpload.tsx b/apps/admin-x-design-system/src/global/form/FileUpload.tsx index 02218ab8432c..8f1711f002c7 100644 --- a/apps/admin-x-design-system/src/global/form/FileUpload.tsx +++ b/apps/admin-x-design-system/src/global/form/FileUpload.tsx @@ -16,9 +16,10 @@ export interface FileUploadProps { style?: CSSProperties; unstyled?: boolean; inputRef?: React.RefObject; + accept?: string; } -const FileUpload: React.FC = ({id, onUpload, children, style, unstyled = false, inputRef, className, dragIndicatorClassName, ...props}) => { +const FileUpload: React.FC = ({id, onUpload, children, style, unstyled = false, inputRef, className, dragIndicatorClassName, accept, ...props}) => { const [fileKey, setFileKey] = useState(Date.now()); const [isDragging, setIsDragging] = useState(false); @@ -52,7 +53,7 @@ const FileUpload: React.FC = ({id, onUpload, children, style, u return (