Skip to content

Commit 885a178

Browse files
committed
Update image file selection filter
1 parent 3708c15 commit 885a178

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/components/Chat/ChatMessageInput.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ const ChatMessageInput: FC<Props> = (props) => {
137137
}, [])
138138

139139
const selectImage = useCallback(async () => {
140-
const file = await fileOpen({ mimeTypes: ['image/jpg', 'image/png', 'image/gif'] })
140+
const file = await fileOpen({
141+
mimeTypes: ['image/jpg', 'image/jpeg', 'image/png', 'image/gif'],
142+
extensions: ['.jpg', '.jpeg', '.png', '.gif'],
143+
})
141144
setImage(file)
142145
inputRef.current?.focus()
143146
}, [])

0 commit comments

Comments
 (0)