From 1ddc2a71b9cb5225458afe6f80de38bb23b8dc4b Mon Sep 17 00:00:00 2001 From: Darshan Gowda <96766940+darshansrc@users.noreply.github.com> Date: Tue, 11 Feb 2025 02:03:40 +0530 Subject: [PATCH] fix: accept only jpeg/png in file input --- components/multimodal-input.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/multimodal-input.tsx b/components/multimodal-input.tsx index 191470534..bf9b90bb5 100644 --- a/components/multimodal-input.tsx +++ b/components/multimodal-input.tsx @@ -206,6 +206,7 @@ function PureMultimodalInput({ className="fixed -top-4 -left-4 size-0.5 opacity-0 pointer-events-none" ref={fileInputRef} multiple + accept="image/jpeg,image/png" onChange={handleFileChange} tabIndex={-1} />