Comments (8)
You should see a contentLength
property in the response of b2.uploadFile()
which is in bytes.
https://www.backblaze.com/b2/docs/b2_upload_file.html
from backblaze-b2.
I should have been more specific. I'm trying to monitor it in real time in order to build a progress bar.
from backblaze-b2.
Not sure you could do that until the module supports multipart uploading.
The upload is a single request to the B2 service with the whole file.
from backblaze-b2.
PR is on the way, folks. The PR will add Promise based progress notifications by extending the request
object.
from backblaze-b2.
#21 adds support for progress notifications via deferred.notify()
. If it ever merges in, you'll be able to get upload/download/request progress via the third parameter of .then()
as such:
b2.someCommand().then(
function(res) { /* success handler */ },
function(err) { /* error handler */ },
function(info) { /* progress handler (called many times) */ }
);
Multi-part uploads are still not supported. However, support should be coming soon. Keep your eyes open.
from backblaze-b2.
Good work again from @crazyscience 👍
from backblaze-b2.
The above only worked for v0.9.12 and only worked for download progress reporting. We've changed how progress reporting is handled to take into account both the request (for uploads) and the response (for downloads). As of v1.0.0
, a callback function can be passed into relevant b2.method()
s. See the README
for more information and usage examples. For large, multipart uploads, you will have to write your own code to aggregate across the multiple requests.
from backblaze-b2.
This should now be supported with onUploadProgress
so I'll close. Please reopen if this is still an issue.
from backblaze-b2.
Related Issues (20)
- More operations with the filename without id HOT 1
- Is there a way to use a download url to download without auth headers? HOT 1
- Blocked by CORS policy HOT 5
- Help needed with use with Typescript HOT 1
- 1.6.0 not published to npm HOT 2
- axios in package.json in npm package still 0.18 HOT 4
- Byte length not same as content-length HOT 2
- Error getting bucket: Error: Request failed with status code 401 HOT 1
- How do I upload an image? HOT 1
- How do I get the url of my uploaded image? HOT 5
- connect ECONNREFUSED 127.0.0.1:80 HOT 3
- Recommend S3 API for basic needs HOT 6
- Find specific file using b2.listFileNames return files not relevant
- LIfecicle Rules. How to set them HOT 1
- on upload progress HOT 1
- Still maintained? HOT 5
- Latest released version (1.7.0) contains Axios CVE-2023-45857
- [Feature request] Add support for copy
- Question on integration with GraphQL HOT 3
- Having some trouble with posting data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backblaze-b2.