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?
Hi User, is there anything in your browser console?
press Ctrl + Shift + J (or Cmd + Shift + J on a Mac).
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
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?
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",
hey
user L
user M
, just checking to see if there have been any updates here? Currently experiencing the same issue
Updating sanity-plugin-media seemed to do the trick.
Haven’t been back to check it out. But I’ll give that ago too and see! thanks
user M

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?