Use S3 by JavaScript on Broweser. AWS SDK for Javascript is required.
- Downloads file from S3 bucket
- Uploads to S3 bucket
- Lists files in the S3 bucket
- Required Settings
- AllowedMethod PUT - For #upload
- AllowedMethod GET - For #listObjects, #getObject, #getSignedUrl
- AllowedOrigin - For all method (I think)
- ???
- AllowedHeader
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
<AllowedHeader>Authorization</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Copy env.js.sample to env.js, fill accessKeyId, secretAccessKey, and bucketId.
Copyright (c) 2015 betahikaru
Released under the MIT license