Closed sevoster closed 9 months ago
Hello @sevoster - thanks for opening the issue. The crash shows around 2gb of memory used. This would not be expected for a file size of 250mb. We will take a look and see if we can reproduce this.
Also I have a question about AWSStreamedHttpRequest. Does it support multipart file uploading? For example, if I want to upload big files (1-2 GB) should I use it? Or I need to implement multipart upload myself since amplify doesn't support use cases with temporary credentials.
Hi @sevoster, I've tried uploading files that are around 250mb and the most memory it has used in the iOS simulator has been 800-900mb and then it goes back down to 150-300mb as soon as the upload is finished. I also created another sample flutter app to upload a 250mb file and got the same results as before. Could you give me reproduction steps to help me reproduce this issue?
Hi @khatruong2009! I've tried to reproduce it again but it works fine for files ~300Mb now. I'm not sure what changed but seems like it's not relevant anymore. Feel free to close the issue. It would be great if you could also help me with uploading huge files to S3 (like 1-2Gb). In that case app crashes with memory limit and I suppose it is an expected behavior for AWSStreamedHttpRequest. I know that Storage plugin can perform multipart uploading for big files. Is it possible to somehow initialize Amplify with temporary credentials (AWS STS) in order to use Storage plugin?
Hi @sevoster, Using STS credentials with Amplify.configure()
is not something that's currently supported because exposing SecretKey on the client side would be a security issue. A similar question was asked here (credit for the answer). I will be closing the issue now, please let us know if you run into any other issues in the future, thanks.
Description
I'm trying to upload file from my application to Amazon S3 using this example: https://github.com/aws-amplify/amplify-flutter/blob/next/packages/aws_signature_v4/example/bin/example.dart
On iOS when I upload big video file (~250 Mb) this request consumes all the available memory and I get exception:
Maybe you have some advise how to decrease memory consumption here.
Categories
Steps to Reproduce
No response
Screenshots
No response
Platforms
Flutter Version
3.13.9
Amplify Flutter Version
0.6.1
Deployment Method
Custom Pipeline
Schema
No response