Add error toasts for image drag and more restrictive image mime type rejection

This commit is contained in:
Mitchell McCaffrey
2021-06-06 19:27:01 +10:00
parent 7d1cff7358
commit acaf580ac7
3 changed files with 23 additions and 6 deletions

View File

@@ -203,7 +203,7 @@ function SelectTokensModal({ isOpen, onRequestClose, onMapTokensStateCreate }) {
<input
onChange={(event) => handleImagesUpload(event.target.files)}
type="file"
accept="image/*"
accept="image/jpeg, image/gif, image/png, image/webp"
style={{ display: "none" }}
ref={fileInputRef}
multiple