aws-sdk-ios icon indicating copy to clipboard operation
aws-sdk-ios copied to clipboard

S3TransferUtility. iPhone can has not enough size of memory to load full video data

Open oleg-moseyko opened this issue 2 years ago • 2 comments

I want to upload a big video using S3TransferUtility. It provides uploadFileUsingMultipart and uploadDataUsingMultipart methods where I need to provide the file URL. Photos URL can be inaccessible and I need to extract data to a temporary directory.

  1. It may need too much time before the actual upload starts.
  2. iPhone can has not enough size of memory to load full data.

My questions are:

  1. Is it possible to upload the big video(for example ~10, 100, ... GB) using multipart (S3TransferUtility) if iPhone has insufficient memory to load full data. Maybe some way with InputStream/OutputStream.
  2. Best practice to upload a big video?

Which AWS Services are you utilizing? S3TransferUtility

Environment(please complete the following information):

  • SDK Version: 2.6.29

Device Information (please complete the following information):

  • Device: iPhone

oleg-moseyko avatar Jun 13 '22 10:06 oleg-moseyko

ping

oleg-moseyko avatar Jul 05 '22 13:07 oleg-moseyko

Current implementation of S3TransferUtility require extra storage to keep temporary files while uploading. It creates a copy of the file during upload so an equivalent amount memory might be required to upload.

royjit avatar Jul 08 '22 23:07 royjit

I am marking this as a feature-request for us to go through and optimize.

harsh62 avatar May 09 '23 17:05 harsh62

Thanks for opening this feature request. We recommend using Amplify Storage for multipart upload. If you're still experiencing this with Amplify Storage, please open an issue in https://github.com/aws-amplify/amplify-swift. Thanks!

atierian avatar Dec 06 '23 21:12 atierian