Thursday, March 24, 2011

Storing Content on S3 from Flash

Storing a file on S3 from a Flash application using an HTTP POST method is NOT easy. I spent over a day reading and rereading the documentation provided by Amazon. Eventually, I stumbled across a link on Amazon that provided an example for POSTing files to S3 from Flash. The example works, however it uses the Flex framework which did not work for my purposes. I removed the Flex dependency and abstracted the details into a nice little library for your consumption on GitHub. I must give credit to Eric Wagner, the original author of the example found.


  1. Hi,

    This seems really great and was exactly what I was looking for. I realised after looking into it some more though that it means that your secret key is now public as you have to put it in your code. Any idea if there's a way around this? Or do you just have to obfuscate and hope for the best?

  2. I suppose you could store your keys outside your application and retrieve them over HTTPS, but at the cost of adding another layer of complexity. Although storing them within the application and obfuscating should be enough security for most Flash applications.

  3. Yeap, it's good method, but in my company, we always use for this porpoises virtual data room pricing, cause it helps to keep it safe and well managed.