ios - Save photos to AWS S3 from iphone app -
i building iphone app lets users take picture , leave comment. posts saved rails-backed server. in rails app use gems: minimagick, carrierwave , fog upload , store image s3.
however - not sure how connection persists when uploading photo iphone- mean is, able save post on iphone, using afnetworking, photo not uploaded s3 bucket. how upload photos s3 - should not saving server, , have saved s3?
i have seen possible methods involving afnetworking s3 client, , looked @ iosforaws sdk, asihttprequest - sort of @ loss , not sure how proceed save images s3. option should pursue?
i haven't seen clear postpath directly bucket on aws- haven't been able implement saving s3 same way save rails server. how work?
i haven't been able find thorough tutorial on info help. guessing need in addphotoviewcontroller, in onsave method photo uploaded server, add s3client- sort of having parallel api- on goes server on heroku, 1 goes s3. right?
i advise relay image server uploads s3 you. need have happen synchronously app knows ready share. important because s3 location or credentials may change , not want forced update app if happens.
yes, server becomes s3 client, , returns result of s3 update api return iphone client.
Comments
Post a Comment