views:

71

answers:

2

Im doing some research to build an iOS and Android app using titanium appcelerator. The only requirement I have not being able to confirm is the possibility to upload a photo directly to Amazon S3 in a way that is compatible with iOS and Android devices.

A: 

You might ask the developers of Titanium Appcelerator. But if you're not writing an HTML5 app, you can definitely do this with the ASIHTTPRequest framework.

Alex Reynolds
+2  A: 

Amazon S3 has provided a REST API so your can do it by creating a Titanium.Network.HTTPClient. For your upload case, you need to provide a PUT request to S3. If you want to do it in this way, you may need to include your S3 secret key in your client for signing your request.

Kuroro
I think we will generate the signature server side. I don't want to include the accounts secret key in a javascript file with the app.
flexterra