
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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 25 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.