-
Notifications
You must be signed in to change notification settings - Fork 148
Large Uploads #74
Comments
Running on a device with more memory I'm able to upload and capture the memory footprint. The zipped file is around 130MB. After calling putObjectWithFile the memory shoots up, roughly 3x the file size. Stepping through what code I can:
It seems that uploading should use some kind of stream so that the whole NSData doesn't have to be loaded into memory. I found this, no idea if it is useful: http://stackoverflow.com/a/18352296 |
Use |
Hi Matt, Doesn't matter the file size. |
|
I'm having the same problem too. |
I'm having the same problem. We never noticed similar problem from windows and browser apps - only mac fails. Also found few similar problem on the web and stackoverflow- mulitpart fails with timeout when uploading large files. |
Added this to our app the other day and putObjectWithFile works great to send files to our S3 bucket, at least if the files are under 100MB. Ours is a video app and so quite often the upload will be larger.
What happens is when the files get too large (I was using 125MB zip) is that the app starts eating up 128MB chunks of memory until the OS shuts it down. This happens sometime after the call to putObjectWithFile but before the progress callback ever happens.
The text was updated successfully, but these errors were encountered: