Uploading files to github using api #24381
Answered
by
nethgato
shiva-sandupatla
asked this question in
API and Webhooks
-
👋Hi, mates. Hope you are going well. I am new to github api, can anyone show an example that how i can upload files to my repository using javascript Hoping with a positive response 😇
|
Beta Was this translation helpful? Give feedback.
Answered by
nethgato
Sep 9, 2020
Replies: 1 comment
-
Hi, hi, @shivani-designer! Looks like there’s a very similar conversation over in this thread:
Maybe it’s just me, but this guide https://developer.github.com/v3/repos/contents/ is incredibly vague. Simple examples would be handy, and not so much emphasis on what the return messages. The objective is to upload a file, preferably .pdf or .png through a curl command. Any help/pointers will be highly appreciated. Doesn’t look like there’s an explicit Javascript example, but you can take any working example and use something like Postman which will kick out a variety of Js options! If you’re still needing explicit guidance, please let us know! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, hi, @shivani-designer!
Looks like there’s a very similar conversation over in this thread: