Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having some trouble with posting data #99

Open
sell opened this issue Aug 10, 2020 · 1 comment
Open

Having some trouble with posting data #99

sell opened this issue Aug 10, 2020 · 1 comment

Comments

@sell
Copy link

sell commented Aug 10, 2020

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.

@odensc
Copy link
Collaborator

odensc commented Sep 29, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants