
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
s3-chunk-uploader
Advanced tools
This library allows you to upload large media files to Amazon S3 in chunks. It supports parallel uploads and provides a simple interface for configuring and initiating the upload process.
This library allows you to upload large media files to Amazon S3 in chunks. It supports parallel uploads and provides a simple interface for configuring and initiating the upload process.
To install the library, use npm or yarn:
npm install s3-chunk-uploader
or
yarn add s3-chunk-uploader
Here is an example of how to use the ChunkUploader
class to upload a Media Blob in chunks:
const uploader = new ChunkUploader({
accessKeyId: "AccessKeyId",
secretAccessKey: "SecretAccessKey",
region: "Region",
});
const url = await uploader.uploadMediaInChunks({
blob: Blob,
key: "/path/to/media",
bucket: "bucket-name",
ACL: "public-read",
strategy: "parallel",
onProgress: (event) => {
console.log(`Upload progress: ${event.progress}%`);
},
});
accessKeyId
: Your AWS access key ID.secretAccessKey
: Your AWS secret access key.region
: The AWS region where your S3 bucket is located.blob
: The media file blob to be uploaded.key
: The destination key (path) in the S3 bucket.bucket
: The name of the S3 bucket.ACL
: The access control list for the uploaded file (e.g., public-read
).strategy
: The upload strategy (e.g., parallel
).onProgress
: A callback function to track the upload progress.This project is licensed under the MIT License.
FAQs
This library allows you to upload large media files to Amazon S3 in chunks. It supports parallel uploads and provides a simple interface for configuring and initiating the upload process.
The npm package s3-chunk-uploader receives a total of 50 weekly downloads. As such, s3-chunk-uploader popularity was classified as not popular.
We found that s3-chunk-uploader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.