Skip to content

Commit

Permalink
feat: file input only accepts *.3mf files
Browse files Browse the repository at this point in the history
  • Loading branch information
seasick committed Dec 31, 2023
1 parent 9fa1009 commit 677c75f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/FileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export default function FileButton({ onChange }: Props) {
fullWidth
>
Select File
<VisuallyHiddenInput type="file" onChange={onChange} />
<VisuallyHiddenInput
type="file"
onChange={onChange}
accept="application/vnd.ms-3mfdocument"
/>
</Button>
);
}

0 comments on commit 677c75f

Please sign in to comment.