Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Is it possible to upload a file to Amazon S3?

I'm researching to build an app using appcelerator, but one of the requirements is that the app uploads photos directly to Amazon S3. Is this possible and compatible with iOS and Android devices?

— asked September 8th 2010 by Jose Padilla
  • amazons3
  • android
  • iphone
0 Comments

3 Answers

  • I think the best way to do this is by POST :

    How it should be sent:
    http://developer.appcelerator.com/question/8471/upload-images-to-a-server#19021

    How Amazon expects it:
    http://docs.amazonwebservices.com/AmazonS3/2006-03-01/dev/index.html?UsingHTTPPOST.html

    An appcelerator developer (Jennifer) seems to have done this except for compression:
    https://developer.appcelerator.com/question/56181/image-compression

    — answered September 9th 2010 by Francisco Tirado
    permalink
    0 Comments
  • POST is not the best way to do this. I investigated for my own app and could not get it to work. I then asked here in the forum whether it was possible, and confirmed that it likely is not.

    I am now working on using S3's PUT object method. I'll update the other post if/when I get it to work.

    — answered October 7th 2010 by Ted Haeger
    permalink
    0 Comments
  • Ted, did you ever get the Put method working for Android? Any update would be very useful.

    — answered March 7th 2012 by Thomas Arnold
    permalink
    1 Comment
    • Ted, did you get it to work. please post sample code

      — commented May 22nd 2013 by sri hari
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.