@bristle/uploader
v1.0.5
Published
Upload files and videos to Bristle
Downloads
11
Readme
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
})