fix: include file extensions in client accept filters - #1289
Conversation
Some browsers (Chrome on Windows) ignore MIME-only accept values like application/java-archive. Emit known extensions from mime-types so the native file picker can filter correctly. Co-authored-by: Cursor <cursoragent@cursor.com>
🦋 Changeset detectedLatest commit: b38d1f3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@armancharan is attempting to deploy a commit to the Ping Labs Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
generateMimeTypesandgenerateClientDropzoneAcceptnow emit known file extensions alongside MIME types (e.g..jarforapplication/java-archive)acceptvalues and falls back to "All Files"Test plan
bun run --filter @uploadthing/shared testbun run --filter @uploadthing/shared typecheckbun run --filter @uploadthing/shared lint'application/java-archive'and confirm the file picker filters to.jarfilesMade with Cursor