👋 Next.js Conf 2024: Come build, party, run, and connect with us! See all events

Issue with uploading PDFs to Sanity studio, resolved by updating sanity-plugin-media.

7 replies
Last updated: Mar 24, 2023
I’m having an issue just trying to upload a .pdf asset into the media library. The file just seems to be queued but hangs and never does anything. Has anyone experienced this? I have another sanity studio instance with the exact same versions that uploading a pdf works fine on. Are there logs that are viewable somewhere, that might show an error?
Feb 22, 2023, 6:17 AM
Hi User, is there anything in your browser console?
press Ctrl + Shift + J (or Cmd + Shift + J on a Mac).
Feb 22, 2023, 7:53 AM
Hey User, actually after about 20-30 seconds I get
media:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
Feb 22, 2023, 11:15 AM
Does that same PDF upload in the other studio that’s working properly? Are you having issues with all pdfs or just this particular one? Also, what version of the Studio and plugin are you on?
Feb 22, 2023, 6:04 PM
user M
Uploads to the other studio work perfectly, its just this studio but all pdf documents. the versions are:
"@sanity/base": "^2.35.2",
"@sanity/core": "^2.35.0",
"@sanity/dashboard": "^2.36.0",
"@sanity/default-layout": "^2.35.2",
"@sanity/default-login": "^2.35.2",
"@sanity/desk-tool": "^2.35.2",
"@sanity/eslint-config-studio": "^2.0.1",
"@sanity/vision": "^2.35.2",
Feb 23, 2023, 12:31 AM
hey
user L
user M
, just checking to see if there have been any updates here? Currently experiencing the same issue
Mar 22, 2023, 12:44 AM
Updating sanity-plugin-media seemed to do the trick.
Mar 22, 2023, 7:38 PM
Haven’t been back to check it out. But I’ll give that ago too and see! thanks
user M
Mar 24, 2023, 4:47 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?