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

upload file issue

Open brettowe opened this issue 6 years ago • 0 comments

Trying to push an image to pushbullet looking at the code my feeling is the flow should be ret = pushbulletToken.PostUploadRequest(filename, mime type) pushbulletToken.Upload(ret, file)

but going on that idea Upload in upload.go is broken as it wants client *http.Client as part of passed items but looking at the code my feeling it it should be func (pb *Pushbullet) Upload(upload *responses.Upload, reader io.Reader) error { instead of func Upload(client *http.Client, upload *responses.Upload, reader io.Reader) error {

and of course adjusting the internal code in that function to ref the client in pb am I understanding how the flow is suppose to work? or is something else required?

brettowe avatar Aug 31 '17 01:08 brettowe