How do I create a permanent resource through mutation stagedUploadsCreate? I have uploaded a file through stagedUploadsCreate. I have consulted with my consultant that the storage time of the file is limited. Can I switch the temporary resource to a permanent resource through mutation {
fileCreate(files: {
alt: “Example Image”,
contentType: “IMAGE”,
originalSource: “https://example-bucket.s3.amazonaws.com/example.jpg”
}) {
files {
id
url
}
}
}
Hi,
You should be able to use the fileCreate
mutation to create a permanent resource, after you’ve run stagedUploadsCreate
. There is a originalSource
argument which can be the resourceUrl
obtained from stagedUploadsCreate
.