Client-side library for resumable, chunked uploads to Google Cloud Storage directly from the browser. v2.0.0 supports pausing and resuming uploads across page reloads by storing chunk checksums in localStorage. Uses the GCS resumable upload protocol. Requires regenerator-runtime. Not actively maintained, but stable for browser-to-GCS uploads without a server proxy.
npm install gcs-browser-uploadNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a new Upload instance, listens to chunk progress, and logs completion or errors.
Upgrade to new config object format: new Upload({ id, url, file, ... })Install regenerator-runtime and import it before using gcs-browser-upload: import 'regenerator-runtime/runtime';
Consider migrating to a maintained library like tus-js-client or uppy.
Wrap localStorage access in try/catch or provide a polyfill/shim.
Always set chunkSize to a multiple of 262144 (e.g., 262144, 524288, 1048576).
Install and import regenerator-runtime before using gcs-browser-upload: require('regenerator-runtime/runtime');Use: const upload = new Upload({...});Use const Upload = require('gcs-browser-upload').default;No dependency data recorded yet.