@waveorb/upload
v1.0.2
Published
Waveorb upload
Downloads
16
Readme
Waveorb upload
Upload files to Amazon S3.
Installation
npm i @waveorb/upload
Usage
On your Node.js server:
var upload = require('@waveorb/upload')({
key: 'amazon_key',
secret: 'amazon_secret',
bucket: 'amazon_bucket'
})
var files = [{
size: 165888,
path: 'filepath',
name: 'filename',
type: 'image/png',
lastModifiedDate: new Date('2024-07-31T08:00:19.944Z')
}]
// Upload file
var urls = await upload(files)
Created by Eldøy Projects