-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat(blob): Provide onUploadProgress({ loaded, total, percentage }) #782
Merged
Commits on Oct 24, 2024
-
feat(blob): Provide onUploadProgress({ loaded, total, percentage })
This commit introduces an `onUploadProgress` callback to put/upload*. Since we're using fetch, this works by making sure every body we send via fetch is a ReadableStream (web). Once it's a ReadableStream we can follow its consumption. Caveats: - This only measures what gets sent to the server, not what was received by the server - Safari & Firefox are not supporting bodies as ReadableStreams, we may need to introduce.. xhr! TODO: - [] Add XHR fallback for runtimes not supporting streams as bodies but having XHR - [] Add real browser tests ensuring we get multiple onUploadProgress events for big files - [] Ensure we send one event at the start of the upload (progress: 0)
Configuration menu - View commit details
-
Copy full SHA for d70a84e - Browse repository at this point
Copy the full SHA d70a84eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e11640 - Browse repository at this point
Copy the full SHA 0e11640View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33085b4 - Browse repository at this point
Copy the full SHA 33085b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10efcfa - Browse repository at this point
Copy the full SHA 10efcfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a4a7fd - Browse repository at this point
Copy the full SHA 9a4a7fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59e01f6 - Browse repository at this point
Copy the full SHA 59e01f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e6d7b9 - Browse repository at this point
Copy the full SHA 6e6d7b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57d0270 - Browse repository at this point
Copy the full SHA 57d0270View commit details -
Update packages/blob/src/helpers.ts
Co-authored-by: Luis Meyer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4fbdc0e - Browse repository at this point
Copy the full SHA 4fbdc0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c69d7e7 - Browse repository at this point
Copy the full SHA c69d7e7View commit details -
Merge branch 'feat/blob/on-progress' of github.com:vercel/storage int…
…o feat/blob/on-progress
Configuration menu - View commit details
-
Copy full SHA for 808ed45 - Browse repository at this point
Copy the full SHA 808ed45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aa175b - Browse repository at this point
Copy the full SHA 7aa175bView commit details
Commits on Oct 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c8d7567 - Browse repository at this point
Copy the full SHA c8d7567View commit details -
Update packages/blob/src/helpers.ts
Co-authored-by: Luis Meyer <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 00727af - Browse repository at this point
Copy the full SHA 00727afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45151d9 - Browse repository at this point
Copy the full SHA 45151d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ee617d - Browse repository at this point
Copy the full SHA 3ee617dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 237165c - Browse repository at this point
Copy the full SHA 237165cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 703090e - Browse repository at this point
Copy the full SHA 703090eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84cd3f0 - Browse repository at this point
Copy the full SHA 84cd3f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 248b360 - Browse repository at this point
Copy the full SHA 248b360View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba3a851 - Browse repository at this point
Copy the full SHA ba3a851View commit details -
Configuration menu - View commit details
-
Copy full SHA for 912f988 - Browse repository at this point
Copy the full SHA 912f988View commit details -
Configuration menu - View commit details
-
Copy full SHA for e64dd26 - Browse repository at this point
Copy the full SHA e64dd26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c8e0ba - Browse repository at this point
Copy the full SHA 2c8e0baView commit details -
Configuration menu - View commit details
-
Copy full SHA for a0c7521 - Browse repository at this point
Copy the full SHA a0c7521View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f0ad1c - Browse repository at this point
Copy the full SHA 5f0ad1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c596cb - Browse repository at this point
Copy the full SHA 3c596cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d6ddac - Browse repository at this point
Copy the full SHA 9d6ddacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4629f9a - Browse repository at this point
Copy the full SHA 4629f9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a74ff98 - Browse repository at this point
Copy the full SHA a74ff98View commit details
Commits on Nov 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 37e0ae5 - Browse repository at this point
Copy the full SHA 37e0ae5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 639a0ac - Browse repository at this point
Copy the full SHA 639a0acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26462db - Browse repository at this point
Copy the full SHA 26462dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 628929f - Browse repository at this point
Copy the full SHA 628929fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 42146d8 - Browse repository at this point
Copy the full SHA 42146d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa99c22 - Browse repository at this point
Copy the full SHA aa99c22View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6fd11f - Browse repository at this point
Copy the full SHA a6fd11fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bff1ec - Browse repository at this point
Copy the full SHA 5bff1ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for a28959f - Browse repository at this point
Copy the full SHA a28959fView commit details -
Configuration menu - View commit details
-
Copy full SHA for aabdf54 - Browse repository at this point
Copy the full SHA aabdf54View commit details
Commits on Nov 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 91d0478 - Browse repository at this point
Copy the full SHA 91d0478View commit details -
Configuration menu - View commit details
-
Copy full SHA for d24da2e - Browse repository at this point
Copy the full SHA d24da2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 682d4ba - Browse repository at this point
Copy the full SHA 682d4baView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.