Re: disable request body buffering for file upload

2017-08-29 Thread garyc
Apologies, please ignore the line > The fastcgi_params file we include in the above location blocks include the lines What followed wasn't really relevant (just about overriding php.ini values with the PHP_VALUE command) so i removed it. Posted at Nginx Forum: https://forum.nginx.org/read.php?

Downloading large ( + 5GB ) files in a multipart fashion from S3

2017-08-29 Thread stuartweir
Original Problem domain: Rails/Rack send_data method attempts downloading whole file onto the server in memory, to then send to the client. This would fail with large files because the server ran out of memory. Original Solution: Use Passenger NGINX to create a proxy_pass between the client and

Re: disable request body buffering for file upload

2017-08-29 Thread garyc
Hi, Reinis has probably covered this but the default php.ini file has a 'File Upload section' with... ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ; upload_tmp_dir = I just uncommented the attribute and set it to a location on our main disk e.g. upl