Skip to content

Conversation

@obadakhalili
Copy link
Contributor

I'm assuming the accept prop can take an arbitrary string of types to accept, like: image/*,application/pdf,audio/wav,audio/mpeg,audio/mp3. if this is the case, then the current code won't accept any non-image file types when passing an accept prop that has support for file types besides images because if the code sees a mention of image/*, it assumes every file type selected must be an image.

@vercel
Copy link
Contributor

vercel bot commented Dec 5, 2025

@obadakhalili is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@haydenbleasel
Copy link
Member

Great fix, thanks @obadakhalili 🚢

@haydenbleasel haydenbleasel merged commit b37a002 into vercel:main Dec 8, 2025
5 of 7 checks passed
// NOTE: keep simple; expand as needed
return true;

const patterns = accept
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 great update - on that note, as AI Elements grows, shall we also include unit tests for such changes?

I haven't had much time in the last few weeks, but would be happy to help on this between the years!

Copy link
Member

@haydenbleasel haydenbleasel Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely, I'll add the unit tests myself but we should start asking for them to be part of the PR 😂

haydenbleasel added a commit that referenced this pull request Dec 8, 2025
@obadakhalili obadakhalili deleted the matches-accept-fix branch December 8, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants