1.0.5 • Published 1 year ago
@bristle/uploader v1.0.5
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
})