go-imgur icon indicating copy to clipboard operation
go-imgur copied to clipboard

Upload Multiple Images

Open AustinMCrane opened this issue 4 years ago • 4 comments
trafficstars

Hello,

I am looking through your package api and see client.UploadImage do you just use the same album string to do this? Some documentation could be helpful

Thanks Guys/Gals/Etc! Awesome job

AustinMCrane avatar Nov 04 '21 14:11 AustinMCrane

Thanks for reporting, but I am not sure if I got your question. UploadImage[0] uploads a single image and you have to pass the album ID for that image. Does that answer your question? If you have a suggestion on how to improve the documentation, I am happy to fix that.

[0] https://pkg.go.dev/github.com/koffeinsource/go-imgur#Client.UploadImage

jbreitbart avatar Nov 04 '21 15:11 jbreitbart

How do i upload multiple images to the same album? At the same time preferably. In imigur you can start a post and add multiple images to it

AustinMCrane avatar Nov 04 '21 15:11 AustinMCrane

like this Screen Shot 2021-11-04 at 10 50 29 AM

AustinMCrane avatar Nov 04 '21 15:11 AustinMCrane

That should be possible by calling the function multiple times with the same album id. I'll try that later and add a sentence to the documentation. Thanks for clearing that up.

jbreitbart avatar Nov 04 '21 16:11 jbreitbart