You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Puppeter to generate a screenshot of a website, which will return a File Buffer. If I save this file to disk its roughly around ~50kb - so pretty small.
I want to save this file as a field in Keystone, so I'm trying to upload it via the GraphQL API but I get the following error:
Assuming the Post.image field is a File or CloudinaryImage type, it needs to be submitted as a multipart form, not json type. That's because we use the Apollo Server scalar Upload type.
I'm using Puppeter to generate a screenshot of a website, which will return a File Buffer. If I save this file to disk its roughly around ~50kb - so pretty small.
I want to save this file as a field in Keystone, so I'm trying to upload it via the GraphQL API but I get the following error:
I'm using request to handle the request.
The text was updated successfully, but these errors were encountered: