What are the server specs?
Handling large file download
Hello. I need to allow users to download large files (1GB and more). Atm I'm just using laravel Storage facade implementation. Basically it is:
return Storage::download("uploads/{$upload->uuid}.zip");
inside of download controller. What I'm getting is very different behavior on my development and production server. I'm using laradock as development server and manually configured nginx + php_fpm on production server. Both servers have same php memory limit settings. But on production server my app crashes with:
Allowed memory size of 268435456 bytes exhausted (tried to allocate 535699456 bytes
while on development server it works just fine and memory usage doesn't even increase when downloading file. I guess it does have something to do with server configuration but I don't even know where to look. Any suggestions?
Please or to participate in this conversation.