Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Define onUploadProgress signature in docs #546

Open
MSevey opened this issue Aug 9, 2022 · 1 comment
Open

Define onUploadProgress signature in docs #546

MSevey opened this issue Aug 9, 2022 · 1 comment

Comments

@MSevey
Copy link
Contributor

MSevey commented Aug 9, 2022

Clearly define the method signature and what values get passed to onUploadProgress (outside of suggesting how to call it in the code samples).

@parajbs
Copy link

parajbs commented Aug 17, 2022

Hello MSevey,

Not quite sure what you mean by method signature.

I just tested the "onUploadProgress" function with "uploadFile" as specified in sdk-doc
"https://sdk.skynetlabs.com/?javascript--browser#setting-additional-options"
and it works great.

The output from the "onUploadProgress" function is displayed in the browser console.

If you want an output on the website as a progress bar, you simply have to send the values of "Progress ${Math.round(progress * 100)}%" to the PrograsBar from the example from the "onUploadProgress" function.

"onUploadProgress" only works in "skynet-js" at the moment.

I hope I could help, but I may have misunderstood you.

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

No branches or pull requests

2 participants