Welcome! Log In Create A New Profile

Advanced

Re: disable request body buffering for file upload

August 25, 2017 10:21AM
Hello, Thanks for the hint I have managed to use the auth request module to check available disk space before accepting the request so I only attempt the upload if there is disk space available.

I am now having another problem. Our debian environment uses a rootfs ramdisk which has just under 1GB of memory, when i accept the upload request I can see the rootfs disk fill steadily until it is full at which point the upload POST request is returned with error 500 and the message 'System error - unable to complete file upload'.

Are there any configuration settings that would instruct nginx to use another disk when accepting the client request body?

I have experimented with client_body_in_file_only and client_body_temp_path and can observe that temporary files are created if they are small enough for the rootfs to handle, files that are rejected when the rootfs fill ups have no temporary file created so presumably this happens after the initial read to the rootfs.

Many thanks
Gary
Subject Author Posted

disable request body buffering for file upload

garyc July 19, 2017 10:33AM

Re: disable request body buffering for file upload

Maxim Dounin July 19, 2017 11:00AM

Re: disable request body buffering for file upload

garyc July 19, 2017 11:22AM

Re: disable request body buffering for file upload

garyc July 20, 2017 06:36AM

Re: disable request body buffering for file upload

Maxim Dounin July 20, 2017 10:12AM

Re: disable request body buffering for file upload

garyc August 25, 2017 10:21AM

Re: disable request body buffering for file upload

garyc August 28, 2017 04:59AM

Re: disable request body buffering for file upload

c0nw0nk August 28, 2017 01:29PM

Re: disable request body buffering for file upload

garyc August 29, 2017 05:09AM

Re: disable request body buffering for file upload

garyc August 29, 2017 05:15AM

Re: disable request body buffering for file upload

Reinis Rozitis August 28, 2017 01:40PM

Re: disable request body buffering for file upload

Francis Daly July 20, 2017 05:12PM

Re: disable request body buffering for file upload

S.A.N July 21, 2017 04:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready