ahmdrz / goinsta

Unofficial Instagram API written in Golang
MIT License
895 stars 248 forks source link

Upload not working #318

Open lormayna opened 4 years ago

lormayna commented 4 years ago

I am trying to upload a picture, but I got an error. This is my code:

func upload(filename string, inst *goinsta.Instagram) { f, err := os.Open(filename) if err != nil { log.Fatal(err) } _, err = inst.UploadPhoto(f, "test", 0, 0) if err != nil { log.Fatal(err) } }

And this is the output:

xxx@kwaremont:~/go/src/i$ go run uploader.go 2020/08/11 11:50:37 invalid status code, result: 404 Not Found exit status 1

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.54. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

TheForgotten69 commented 3 years ago

fixed in my fork