-
Notifications
You must be signed in to change notification settings - Fork 512
fix: implement fallback for asset sources without uploaders #11907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
🧪 E2E Preview environment🔑 Environment Variables for Local TestingThis is the preview URL for the E2E tests: https://e2e-studio-9j4g7w9n4.sanity.dev To run the E2E tests locally, you can use the following environment variables, then run 💬 Remember to build the project first with |
📊 Playwright Test ReportThis report contains test results, including videos of failing tests. |
⚡️ Editor Performance ReportUpdated Mon, 26 Jan 2026 14:13:05 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||
Preview this PR with pkg.pr.newRun the Sanity CLI...Or upgrade project dependencies
|
…s to include resolveUploader
…s to include resolveUploader
…ndant uploader resolution and enhancing dependency arrays
RitaDias
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing jumps out at me as something to block it and it feels like a good thing to get out!
A quick question: is there a way of writing a test for making sure the fallback is actually working as expected?
Description
Asset sources without an Uploader property (like sanity-plugin-media) were filtered out by the drag-and-drop system, causing dropped files to be silently ignored.
This PR now substitute a default dataset asset source that has one, allowing the upload to proceed when a dropped file's asset source lacks an Uploader.
What to review
Testing
Verified the fix in a studio provided by support where the original issue could be replicated. Imported the version of sanity as on this branch fix to confirm fix.
Notes for release
Fixes an issue when dragging and dropping a file into a file upload field, where in some instances where an uploader handler was not defined, the file would fail to upload with an error claiming that no handler could be found.