Détail du package

@flystorage/aws-s3

duna-oss9.3kMIT1.1.1

s3, file, storage, flystorage

readme

Flystorage adapter for AWS S3

This package contains the Flystorage adapter for AWS S3 using the V3 SDK.

Installation

Install all the required packages

npm install --save @flystorage/file-storage @flystorage/aws-s3 @aws-sdk/client-s3

Usage

import {FileStorage} from '@flystorage/file-storage';
import {AwsS3StorageAdapter} from '@flystorage/aws-s3';
import {S3Client} from '@aws-sdk/client-s3';

const client = new S3Client();
const adapter = new AwsS3StorageAdapter(client, {
    bucket: '{your-bucket-name}',
    prefix: '{optional-path-prefix}',
});
const storage = new FileStorage(adapter);

⚠️ Always use the FileStorage, it is essential for security and a good developer experience. Do not use the adapter directly.

changelog

@flystorage/aws-s3

1.1.1

Changed

  • Do not send a body when creating a directory to prevent hanging requests.

1.1.0

Added

  • AbortSignal Support

1.0.1

Fixes

  • Bug: fixed not being able to use write options

1.0.0

Major Changes

  • First 1.0.0 release