AWS: WordPress – Video Won’t Upload crunching

AWS: WordPress – Video Won’t Upload  crunching

I’ve been using an AWS S3 bucket for images and videos for our WordPress websites for awhile now. I was always able to get images to upload easily without a hitch. But videos? That was a different story. They would take forever to upload and I’d be stuck looking at the words CRUNCHING…

The solution?

On your AWS S3 bucket, enable CORS

  • right click on the bucket -> properties
  • click link to enable CORS
  • add the following:

<?xml version=”1.0″ encoding=”UTF-8″?>
<CORSConfiguration xmlns=”http://s3.amazonaws.com/doc/2006-03-01/”>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>6000</MaxAgeSeconds>
<AllowedHeader>Authorization</AllowedHeader>
</CORSRule>
<CORSRule>
<AllowedOrigin>http://motion.tv</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<MaxAgeSeconds>6000</MaxAgeSeconds>
<AllowedHeader>Authorization</AllowedHeader>
</CORSRule>
</CORSConfiguration>

Now the only CRUNCHING I experience is the sound of eating green chile caramel corn – and that’s a crunching I can deal with!

Leave a Reply