Still need a hand here.
Let me reiterate so it becomes clear.
My solution worked in AWS.
My solution works with FILE and IMAGE type.
But with VIDEO type I do not get an output.
Even when I use the official code and variables from here:
https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/stageduploadscreate
These input variables:
{
"input": [
{
"filename": "image1.png",
"mimeType": "image/png",
"httpMethod": "POST",
"resource": "IMAGE"
},
{
"filename": "video.mp4",
"mimeType": "video/mp4",
"fileSize": "1234",
"resource": "VIDEO"
},
{
"filename": "3d_model.glb",
"mimeType": "model/gltf-binary",
"resource": "MODEL_3D",
"fileSize": "456"
}
]
}
give me resourceUrls only for IMAGE and FILE.
Video comes back empty since shopify changed to Google Cloud.
There is not upload done at all at this stage.
This is just to retrieve the staging URL.
Permissions to write and read files is of course given to my app.
No error message. Eg. when I put a huge filesize for VIDEO I do get an error message.
What could be the reason?