Skip to content

Commit

Permalink
fix: only allow image upload for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
thucpn committed Mar 3, 2025
1 parent dfe2ec4 commit 0dc119a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/web/app/custom-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ export function CustomChat() {
</div>
<ChatInput.Form>
<ChatInput.Field />
<ChatInput.Upload onUpload={handleUpload} />
<ChatInput.Upload
allowedExtensions={['jpg', 'png', 'jpeg']}
onUpload={handleUpload}
/>
<ChatInput.Submit />
</ChatInput.Form>
</ChatInput>
Expand Down

0 comments on commit 0dc119a

Please sign in to comment.