diff --git a/src/components/cardSelector/ImageCardButton.tsx b/src/components/cardSelector/ImageCardButton.tsx index 018d354..45a5b2d 100644 --- a/src/components/cardSelector/ImageCardButton.tsx +++ b/src/components/cardSelector/ImageCardButton.tsx @@ -8,6 +8,9 @@ export function ImageCardButton() { function _handleClick(mouseEvent: MouseEvent) { const input = document.createElement('input') input.type = 'file' + input.accept = ".png,.jpg,.webp,.jpeg" + input.multiple = false + input.onchange = (e: any) => { const file = e.target.files[0] const reader = new FileReader()