Skip to content

Sample application showing how to upload files directly to S3 with plupload

Notifications You must be signed in to change notification settings

randomizor/plupload-s3-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##SETUP

Set your bucket, access key and secret key in config/settings.yml

Ensure your S3 bucket has a CORS configuration set that allows the POST method. Sample configuration below (in a production environment, you'll want to restrict the allowed origins).

<? 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>
        <MaxAgeSeconds>3000</MaxAgeSeconds>
        <AllowedHeader>*</AllowedHeader>
    </CORSRule>
</CORSConfiguration>

About

Sample application showing how to upload files directly to S3 with plupload

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published