Joint session with Vercel: How to build intelligent storefronts (May 15th)

Sanity Studio image upload hanging on large JPG files

16 repliesLast updated: Nov 29, 2025

Hi folks! I’m having a lot of trouble uploading images in Sanity Studio, it just hangs for a super long time. The images I’m trying to upload aren’t anything special, generally around 1.5MB or smaller JPGs. Has anyone else experienced something like this? This isn’t self-hosted btw, it’s hosted on sanity.studio.
AI Update

I feel your pain! Image upload hanging issues in Sanity Studio can be really frustrating. Based on a similar issue from the Sanity community, the most likely culprit is actually in your image schema configuration.

The Main Issue: Invalid Metadata Options

If you have an image field with a metadata array in your schema, check if you're including dimensions, hasAlpha, or isOpaque. These options are not valid for the metadata array and will cause uploads to fail with a 400 error.

Here's what an incorrect schema looks like:

{
  name: 'myImage',
  type: 'image',
  options: {
    metadata: [
      'dimensions',    // ❌ Invalid
      'hasAlpha',      // ❌ Invalid  
      'isOpaque',      // ❌ Invalid
      'blurhash',      // ✅ Valid
      'lqip',          // ✅ Valid
      'palette',       // ✅ Valid
      'exif',          // ✅ Valid
    ],
  },
}

The Fix

Remove dimensions, hasAlpha, and isOpaque from your metadata array. The valid metadata options are:

After updating your schema, restart your Studio dev server.

Other Troubleshooting Steps

If the schema fix doesn't solve it, try these:

If you need to clean up any partially uploaded assets that are stuck, you can use the Sanity CLI to delete assets with commands like sanity documents delete targeting sanity.imageAsset documents.

The metadata configuration issue was fixed in Sanity Studio v2.28.0, where invalid metadata options are now silently removed instead of causing upload failures. Make sure you're on the latest version!

Show original thread
16 replies

Was this answer helpful?

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.

Related contributions