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:
Create a Next.js app and embed Sanity Studio within the app
Create a block content-type field in a document in Sanity schema which supports image upload
Start the project locally and open Sanity Studio embedded within an app route, in Safari browser
Visit the document which contains a block content-type field and try to upload an image
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
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.
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:
upload
button, image upload modal closes and nothing happensExpected 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
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 onnext dev
.