Skip to content

Commit

Permalink
fix: image dialog should accept only images
Browse files Browse the repository at this point in the history
Fixes #413
  • Loading branch information
petyosi committed Apr 12, 2024
1 parent fa4c5c4 commit 9c4c7cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint": "eslint src --ext .ts,.tsx",
"test": "vitest",
"semantic-release": "semantic-release",
"image-upload-backend": "node ./src/stories/file-backend.js"
"image-upload-backend": "node ./src/examples/file-backend.js"
},
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/image/ImageDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const ImageDialog: React.FC = () => {
>
<div className={styles.formField}>
<label htmlFor="file">{t('uploadImage.uploadInstructions', 'Upload an image from your device:')}</label>
<input type="file" {...register('file')} />
<input type="file" accept="image/*" {...register('file')} />
</div>

<div className={styles.formField}>
Expand Down

0 comments on commit 9c4c7cc

Please sign in to comment.