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

Commit an image to a gist #651

Open
blurymind opened this issue Apr 29, 2021 · 2 comments
Open

Commit an image to a gist #651

blurymind opened this issue Apr 29, 2021 · 2 comments

Comments

@blurymind
Copy link

blurymind commented Apr 29, 2021

Can we replicate this in javascript?
https://gist.github.com/mroderick/1afdd71aa69f6b29601d335751a1a9be

When I try to write it with gist.update(...), I get a bunch of binary garbage uploaded.

I can however commit images to github with {encode: false}. Can a similar parameter be passed to gist.update?

@blurymind
Copy link
Author

could perhaps setting a custom media type do it?
https://docs.github.com/en/rest/reference/gists#custom-media-types-for-gists

can this library even do it and if so where?

@blurymind
Copy link
Author

or maybe commit it from cache, after putting it there with the filesystem api?
https://www.arcusglobal.com/news/file-system-how-to

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