DEV Community

Discussion on: Large file uploads to an S3 bucket done neatly in Laravel

Collapse
 
faselahmad0 profile image
Ahmed Faisel

Morning adam
is this solution upload the file first to the server then to amazon server?
if not this will keep errors like
Allowed memory size of XXX bytes exhausted (tried to allocate XXXXX bytes).

I am searching for a solution to fix this error without upgrade the memory size

Collapse
 
adam_crampton profile image
Adam Crampton

Hi there, you may want to try increasing the memory_limit setting in the server's php.ini file to get around this, if that's an option for you.

I'm not sure using a regular upload (as opposed to a stream, shown in this article) will cure the memory issue.

Good luck!