I am having an issue with Assets when trying to upload large-ish .mp3 files to an Amazon S3 bucket.
Here is my setup:
- ExpressionEngine v2.5.5
- Assets v2.1.2
- PHP v5.4.10 (via MAMP)
- Dedicated Amazon bucket (tested with smaller image files and is confirmed to be working and accepting uploads)
I have adjusted my php.ini settings to the following values:
post_max_size = 500M
upload_max_filesize = 500M
max_execution_time = 600
max_input_time = 600
memory_limit = 128M
While trying to upload a .mp3 file that is 120MB in size (it's a podcast), I get the following error in Assets:
Could not upload the file - server returned an unexpected response. Please check the server settings.
Checking the PHP error log, this is the message I see:
[05-May-2013 14:19:33 America/New_York] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 80987568 bytes) in Unknown on line 0
That's a lot of memory Assets is trying to use. I'm not sure how Assets deals with big files – does it try to load the entire contents in memory and then upload? Any other settings I could try?
A quick note – I did try uploading a 15MB .mp3 and that worked without problem.