gist
gist copied to clipboard
Allow uploading images.
At the moment gist something.png
fails with Error: invalid byte sequence in UTF-8
. It would be handy to be able to upload a sequence of bytes with a filename, instead of requiring a specific encoding.
Hey Joe!
Last I looked the API required putting the contents of files into JSON, which meant you could only upload files that were valid utf-8 — can you please do some research on the gist API and determine if this is possible now?
Thanks!
Conrad
Sent via Superhuman https://sprh.mn/[email protected]
On Thu, Feb 02, 2017 at 5:36 AM, Joe Hermaszewski[email protected] wrote:
At the moment gist something.png fails with Error: invalid byte sequence in UTF-8. It would be handy to be able to upload a sequence of bytes with a filename, instead of requiring a specific encoding.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/defunkt/gist/issues/255, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFwQC1o5BZeDhsRMkZ6ZFLCz7ZKrFc_ks5rYdv5gaJpZM4L1Hcd .
Looks like it isn't possible with the HTTP api. The only way to do it is via the git interface it seems, quite a departure from how things are done in this tool.
I notice the README says that this is potentially the best command line gister. Some people are recommending to use gistup instead because it "works perfectly" to upload images.
Although it is written in nodejs, a quick perusal of the code seems to show how they manage it without an API: they just call child.exec("git ...")
.
I know it's ugly, but could this be a possible solution?
Pull requests welcome :)
Sent via Superhuman ( https://sprh.mn/[email protected] )
On Thu, Apr 26, 2018 at 4:08 PM, hackerb9 < [email protected] > wrote:
I notice the README says that this is potentially the best command line gister. Some people are recommending to use gistup ( https://github.com/mbostock/gistup ) instead because it "works perfectly" to upload images.
Although it is written in nodejs, a quick perusal of the code seems to show how they manage it without an API: they just call child.exec("git ...").
I know it's ugly, but could this be a possible solution?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub ( https://github.com/defunkt/gist/issues/255#issuecomment-384815659 ) , or mute the thread ( https://github.com/notifications/unsubscribe-auth/AAFwQIAw-z9lc5_VrHzuVmcb2py0n5Lcks5tslNSgaJpZM4L1Hcd ).
@hackerb9 I wrote https://github.com/expipiplus1/gist-image to scratch this itch. It's very simple but satisfies my use case.
On Fri, 27 Apr 2018, 07:35 Conrad Irwin, [email protected] wrote:
Pull requests welcome :)
Sent via Superhuman ( https://sprh.mn/[email protected] )
On Thu, Apr 26, 2018 at 4:08 PM, hackerb9 < [email protected] > wrote:
I notice the README says that this is potentially the best command line gister. Some people are recommending to use gistup ( https://github.com/mbostock/gistup ) instead because it "works perfectly" to upload images.
Although it is written in nodejs, a quick perusal of the code seems to show how they manage it without an API: they just call child.exec("git ...").
I know it's ugly, but could this be a possible solution?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub ( https://github.com/defunkt/gist/issues/255#issuecomment-384815659 ) , or mute the thread (
https://github.com/notifications/unsubscribe-auth/AAFwQIAw-z9lc5_VrHzuVmcb2py0n5Lcks5tslNSgaJpZM4L1Hcd
).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/defunkt/gist/issues/255#issuecomment-384820086, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0U3BHvSvTYvvG0sqyb2bHY7aFjTtSSks5tslnRgaJpZM4L1Hcd .
Thanks, expipiplus1. (eˣππ+1?)
e^iπ+1 :)
On Fri, 27 Apr 2018 at 13:30 hackerb9 [email protected] wrote:
Thanks, expipiplus1. (eˣππ+1?)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/defunkt/gist/issues/255#issuecomment-384868361, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0U3E8Z9s66cbhJIdb3dgGfUcm0HKUPks5tsqzygaJpZM4L1Hcd .