awss3transfermanager

iOS AWS S3 Upload How To Retry Failed or Faulted Tasks?

廉价感情. 提交于 2021-02-10 05:45:06
问题 I'm utilizing the iOS AWS SDK's batch upload [AWSTask taskForCompletionOfAllTasks:tasks] The tasks array is an array of AWSTask *task = [self.transferManager upload:uploadRequest]; objects. Once the upload is complete I can enumerate through the array to check to see if all the tasks were successful or not. However, I can't seem to figure out how to retry a failed or faulted task. If I pass an array of failed tasks to taskForCompletionOfAllTasks it doesn't do anything with those tasks? The

AWSS3 What are the best strategies of bucket location for video uploading?

喜欢而已 提交于 2019-12-25 11:01:44
问题 I have configured a bucket on Amazon and I use CloudFront. I upload images and videos on it. Even though my videos are max 15 sec and I compress them (with AVAssetExportSession in AVAssetExportPreset640x480 format + shouldOptimizeForNetworkUse set to true ) before sending them, it seems too long to upload (sometimes more than 1,5 min). I was wondering if I should configure several buckets in several locations in the world in order to upload the user video to the nearest bucket and reduce the

Support for object level Tagging in boto3 upload_file method

僤鯓⒐⒋嵵緔 提交于 2019-12-13 04:27:24
问题 I want to add tags to the files as I upload them to S3. Boto3 supports specifying tags with put_object method, however considering expected file size, I am using upload_file function which handles multipart uploads. But this function rejects 'Tagging' as keyword argument. import boto3 client = boto3.client('s3', region_name='us-west-2') client.upload_file('test.mp4', 'bucket_name', 'test.mp4', ExtraArgs={'Tagging': 'type=test'}) ValueError: Invalid extra_args key 'Tagging', must be one of:

S3 Multiple Files Download Java SDK

青春壹個敷衍的年華 提交于 2019-12-11 17:13:35
问题 We have a feature in which end users can download thousands of photos (e.g. 4-5k) in a collection in a ZIP format. We are using S3 for storing the photos. So an user clicks the "Download" button then a ZIP file starts downloading. The backend code is like below (Just code snippet) ZipOutputStream zos = new ZipOutputStream(response.getOutputStream()); for (Gallery photo : gallery) { S3ObjectInputStream file = null; try { filePath = title + "_" + id + "_"+ photo.getId() + ".jpg"; file =

Error while uploading file to Amazon S3 bucket

丶灬走出姿态 提交于 2019-12-10 22:37:20
问题 When I run my app and logins with google account, it gives me the cognito provider. Now I am trying to upload a file to S3 bucket from the app. First I am trying to upload a file from my local laptop, then I will change it to upload from the app. Here is my code provider = new CognitoCachingCredentialsProvider(mContext, AWS_ACCOUNT_ID, IDENTITY_POOL_ID, UNAUTH_ROLE_ARN, AUTH_ROLE_ARN,Regions.EU_WEST_1); client = new CognitoSyncManager(mContext, IDENTITY_POOL_ID, Regions.EU_WEST_1, provider);