Any way to upload an image from a url?
# prisma-whats-new
b
Any way to upload an image from a url?
a
I guess something like that should works
Copy code
mutation {
  createFile(
    url: "__URL__",
    contentType: "image/jpeg"
    name: "Filename",
    secret: "uniqueValue"
    size: 0
  ) {
    id
  }
}
n
no,
createFile
is not supposed to be called directly. here's an example @bnilsen https://github.com/graphcool/content/issues/59
👍 1
😅 1
b
thanks!