1.0.5 • Published 1 year ago

@bristle/uploader v1.0.5

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Description

Client library to upload files to S3

Installation

Add this as a dependency to your project using npm with

$ npm i @bristle/uploader

or using Yarn with

$ yarn add @bristle/uploader

Usage

Upload files to Bristle

import createBristleUploader from '@bristle/uploader'

const s3 = { 
  accessKeyId: '',
  secretAccessKey: '',
};


const bristleUploader = createBristleUploader({ s3, stage: 'production' })

const { url } = await bristleUploader({
  fileExtension: 'jpg',
  userId: '63b9910472ef84fb3a880cff',
  assetType: 'profile-picture',
  file: FileBlob
})
1.0.5

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago