We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
upload(files) { const config = { onUploadProgress: function(progressEvent) { const percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) console.log(percentCompleted) } } let data = new FormData() data.append('file', files[0]) $fetch(url, { method: 'POST', body: data, config }).then(res => console.log({ res })).catch(err => console.log({ err }))}
i can't find onUploadProgress in $fetch module we used to use it in axios to enable us making a progress bar while uploading images
onUploadProgress
$fetch
axios
No response
The text was updated successfully, but these errors were encountered:
unjs/ofetch#45
It's not support now...
Sorry, something went wrong.
Closing in favor of unjs/ofetch#45. Should work in chrome only at the moment with a bit of hand work.
Is it not supported yet?
No branches or pull requests
Environment
Reproduction
Describe the bug
i can't find
onUploadProgress
in$fetch
modulewe used to use it in
axios
to enable us making a progress bar while uploading imagesAdditional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: