Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutation: upload file directly from browser #337

Open
nelhop opened this issue May 11, 2020 · 0 comments
Open

Mutation: upload file directly from browser #337

nelhop opened this issue May 11, 2020 · 0 comments

Comments

@nelhop
Copy link

nelhop commented May 11, 2020

Is there a way to upload an image directly from the Browser, without loading it to a public server before?

Already working:

mutation uploadImage ( $image: [FotoAssetInput] ) {
  upsertXYZ ( image: $image ) {
    id
  }
}
{
  "image": [{"url": "https://placekitten.com/g/200/300"}]
}

Seeked feature:

{
  "image": [{"file": "File Object"}],
  "image": [{"base64": "data:image/jpg;base64,iVBORw0KGgoAAAANSUhEUgAABZwAAAF..."}],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant