Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

s3-chunk-uploader

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

s3-chunk-uploader

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.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-95.24%
Maintainers
0
Weekly downloads
 
Created
Source

S3 Chunk Uploader

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.

Installation

To install the library, use npm or yarn:

npm install s3-chunk-uploader

or

yarn add s3-chunk-uploader

Usage

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",
});

Parameters

  • 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).

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 03 Dec 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc