Integrating Amazon S3 simple file upload
Continuing with the series on integrating Appcelerator with StackMob, in this post we show how to upload an image to StackMob.
To make this work, you will need to setup an account with Amazon S3, please see this link for additional information and sign up for an Account with Amazon.
The tricky part to making it work is to convert the file to base64 before uploading. There might be another solution. But this is the one that worked for me.
Here is the complete code listing enjoy