Uploading multiple image assets into array via API #4083
Unanswered
BenBao93
asked this question in
Sanity Studio Support
Replies: 2 comments
-
Same question, Any solutions? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would be happy to have such functionality working on sanity API. The way that I am doing right now is making several API calls, one for each image. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to upload multiple image assets into an array field via the javascript SDK via a patch request. The requests succeeds without error and returns the documents content, however without any images added.
This is the code I am using:
As far as I can see from the documentation this should work, however there is no trace of any asset in the document and absolutely no error thrown. The call runs through and uploads the images then everything just disappears into a void.
Beta Was this translation helpful? Give feedback.
All reactions