Socket
Book a DemoInstallSign in
Socket

@uppy/aws-s3

Package Overview
Dependencies
Maintainers
5
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/aws-s3

Upload to Amazon S3 with Uppy

latest
Source
npmnpm
Version
5.0.0
Version published
Maintainers
5
Created

What is @uppy/aws-s3?

@uppy/aws-s3 is a plugin for Uppy, a file uploader for web browsers, that allows users to upload files directly to an AWS S3 bucket. It handles the necessary steps to securely upload files to S3, including generating signed URLs and managing the upload process.

What are @uppy/aws-s3's main functionalities?

Direct Upload to S3

This feature allows users to upload files directly to an AWS S3 bucket using Uppy. The code sample demonstrates how to set up Uppy with the AwsS3 plugin, specifying a companion URL for handling the S3 upload process.

const Uppy = require('@uppy/core');
const AwsS3 = require('@uppy/aws-s3');

const uppy = Uppy();
uppy.use(AwsS3, {
  companionUrl: 'https://companion.uppy.io/'
});

uppy.on('complete', (result) => {
  console.log('Upload complete! We’ve uploaded these files:', result.successful)
});

Customizing Upload Parameters

This feature allows customization of upload parameters by providing a function to fetch parameters from a server. The code sample shows how to configure the AwsS3 plugin to use a custom endpoint to retrieve upload parameters for each file.

const Uppy = require('@uppy/core');
const AwsS3 = require('@uppy/aws-s3');

const uppy = Uppy();
uppy.use(AwsS3, {
  companionUrl: 'https://companion.uppy.io/',
  getUploadParameters(file) {
    return fetch('/s3/params', {
      method: 'post',
      headers: {
        'content-type': 'application/json'
      },
      body: JSON.stringify({ filename: file.name, contentType: file.type })
    }).then((response) => {
      return response.json()
    })
  }
});

Other packages similar to @uppy/aws-s3

Keywords

file uploader

FAQs

Package last updated on 22 Aug 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.