March 22, 2011 08:17PM
Hi,

I'm using the latest version of Nginx, PHP/PHP-FPM on a Linux machine with 2GB of ram and plenty of hard disk space.

My problem is this: when I upload a large (2GB, for exemple) file on my Web site, Nginx buffers the whole file in memory, and this will be come a huge problem as we're going to have a lot of users uploading large files in a near future. So I gave a try to the Nginx upload module as I thought it would write directly to disk and skip memory, but no, I still have the same issue.

I'm currently looking at solutions like Plupload (Flash uploader) that can chunk an upload in many small files - but the perfect solution would be to be able to tell Nginx to write the client body directly to file, and never keep it in memory.

Is it possible?

Thanks!
Subject Author Posted

Disable memory buffer for file uploads

akaris March 22, 2011 08:17PM

Re: Disable memory buffer for file uploads

Francis Daly March 22, 2011 11:40PM

Re: Disable memory buffer for file uploads

fjctlzy March 22, 2011 11:44PM

Re: Disable memory buffer for file uploads

Francis Daly March 23, 2011 06:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 240
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready