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

Closed
StickyFingaas opened this issue May 9, 2024 · 3 comments
Closed

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

StickyFingaas opened this issue May 9, 2024 · 3 comments
Labels

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.

@runeb runeb added the bug label Jul 25, 2024 — with Linear
@runeb
Copy link
Member

runeb commented Jul 25, 2024

@StickyFingaas Apologies for the late response here. Is this still an issue on latest versions?

@StickyFingaas
Copy link
Author

@runeb it appears to be working with Sanity version 3.52.2. Thanks!

@linear linear bot closed this as completed Aug 1, 2024
Copy link
Contributor

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants