Skip to content
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

Unable to upload images to block content type field on Safari #6612

Open
StickyFingaas opened this issue May 9, 2024 · 0 comments
Open

Unable to upload images to block content type field on Safari #6612

StickyFingaas opened this issue May 9, 2024 · 0 comments

Comments

@StickyFingaas
Copy link

StickyFingaas commented May 9, 2024

Describe the bug

I have embedded Sanity Studio in a Next.js app - /admin route. On latest version of Safari I'm unable to upload an image as a part of a block content-type field. After clicking the upload button, the image upload modal just closes and nothing happens.
This works fine on Chrome and similar browsers however.

To Reproduce

Steps to reproduce the behavior:

  1. Create a Next.js app and embed Sanity Studio within the app
  2. Create a block content-type field in a document in Sanity schema which supports image upload
  3. Start the project locally and open Sanity Studio embedded within an app route, in Safari browser
  4. Visit the document which contains a block content-type field and try to upload an image
  5. After clicking the upload button, image upload modal closes and nothing happens

Expected behavior

After clicking the upload button, a window should appear which allows me to upload an image from my device.

Screenshots

Image upload flow within block content field
Screenshot 2024-05-09 at 16 32 36

Screenshot 2024-05-09 at 16 06 43

Which versions of Sanity are you using?

3.38.0

What operating system are you using?

macOS Ventura 13.0

Which versions of Node.js / npm are you running?

Node.js - 20.3.0
npm - 9.6.7

Additional context

I've tried to update Sanity to the latest version (3.41.1) and check if the issue persists on Safari. It was still happening during next build but it wasn't happening on next dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant