yakovkhalinsky/backblaze-b2

Having some trouble with posting data

sell opened this issue · 1 comments

sell commented

Hey, so I am trying to upload a file but am kind of confused how I will go about it, so I have

b2.uploadFile({
     uploadUrl: 'my url is here',
     uploadAuthToken: 'my token is here',
)}

Now, how do I go about uploading a file, because the only other param I see is fileName, and not like a specific file or path where I can get the image and upload it, because I have an api and want to post the uploaded users image to backblaze,

So, Example for uploading an image from a canvas #17 kind of helped me, but it's just upload buffer, and I am unable to view it, just shows a black box.

Sorry your question isn't too clear to me... You should just be able to pass your user's image as a Buffer via data? What part isn't working?