This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PutObjectOutput, PutObjectRequest } from 'aws-sdk/clients/s3'; | |
import {AWSError} from 'aws-sdk/lib/error'; | |
import * as S3 from 'aws-sdk/clients/s3'; | |
import Connect from './connection'; | |
/** | |
* Uploads a file to your bucket in either the root or a subdirectory | |
* In this example we are making all objects publicly accessible by using the ACL 'public-read'. If you want to make | |
* the file private or use a different access policy then you can read more about canned ACLs here: https://amzn.to/2UoGMdh | |
* |