stagedUploadsCreate not working

Highlighted
New Member
6 0 0

I'm following the tutorial (https://shopify.dev/tutorials/manage-product-media-with-admin-api#media-actions-supported-by-graphql... and using the docs (https://shopify.dev/docs/admin-api/graphql/reference/mutation/stageduploadscreate) to upload an image to the store.

I get the error:
Uncaught (in promise) Error: GraphQL error: StagedUploadInput isn't a defined input type (on $input) GraphQL error: Field 'stagedUploadsCreate' doesn't exist on type 'Mutation' GraphQL error: Variable $input is declared by stagedUploadsCreate but not used

Not sure what I'm doing wrong..

can someone point me in the right direction?

0 Likes
Highlighted
New Member
6 0 0

I managed to get the GQL muration working, but the PUT request to upload the file is not working.
It's returning a Same Origin Policy error trying to upload the file to AWS.

Can someone please help? The Shopify documentation is totally rubbish.

0 Likes