modern aws tools
- s3Upload
import { s3Upload } from 'modern-aws-tools';
s3Upload({
credential: {
accessKeyId: 'xxx',
secretAccessKey: 'xxx',
expiration: '',
sessionToken: ''
},
region: 'xxx',
bucket: 'xxx',
host: 'xxx',
prefix: 'xxx',
file: new File(['xxx'], 'xxx'),
key: 'xxx'
})