[Abandoned] Lighttpd(1.4.76) file upload: temp files are not in chunks of 1mb
Added by akshay212 26 days ago
I have upgraded the Lighttpd from 1.4.54 to 1.4.76. In 1.4.54 version when uploading the file, many 1mb temporary files can be seen. After upgrading to 1.4.76 there's only one temporary file, which size is the size of uploaded file.
Is there any way to get temporary files in chunks of 1mb rather than in a single temporary file?
lightpd-1.4.54.png (220 KB) lightpd-1.4.54.png | Temp files in version 1.4.54 | ||
lightpd-1.4.76.png (12.6 KB) lightpd-1.4.76.png | Temp file in version 1.4.76 |
Replies (5)
RE: Lighttpd(1.4.76) file upload: temp files are not in chunks of 1mb - Added by avij 26 days ago
Have you had a look at the server.upload-temp-file-size setting as documented in https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ConfigurationOptions ?
RE: Lighttpd(1.4.76) file upload: temp files are not in chunks of 1mb - Added by akshay212 26 days ago
--------------
- Set to 1MB
server.upload-temp-file-size = 1048576
--------------
Observed below in Lighttpd 1.4.60 changelog (Changes from 1.4.59)
--------------
[core] remove server.upload-temp-file-size limit
--------------
reference: https://www.lighttpd.net/2021/10/3/1.4.60/
RE: Lighttpd(1.4.76) file upload: temp files are not in chunks of 1mb - Added by avij 26 days ago
Funny, works fine here on 1.4.76ish (version from git at around 1.4.76 release time):
-rw-------. 1 lighttpd lighttpd 704125 Jan 27 15:59 lighttpd-upload-2WvQ1o -rw-------. 1 lighttpd lighttpd 1064375 Jan 27 15:59 lighttpd-upload-fe8bE9 -rw-------. 1 lighttpd lighttpd 1064375 Jan 27 15:59 lighttpd-upload-pczSeo -rw-------. 1 lighttpd lighttpd 1064375 Jan 27 15:59 lighttpd-upload-Qs4gLc -rw-------. 1 lighttpd lighttpd 1064375 Jan 27 15:59 lighttpd-upload-YqOLos
lighttpd.conf has: server.upload-temp-file-size = 1048576
RE: Lighttpd(1.4.76) file upload: temp files are not in chunks of 1mb - Added by gstrauss 26 days ago
There are some optimizations which may affect how temp files are accumulated.
Please refer to How to get support
I am going to guess that you are feeding the input to a CGI, and that you are not streaming the request body, but you did not provide basic details about your lighttpd.conf and usage.
See server.feature-flags "cgi.tempfile-accum" => "enable"
lighttpd mod_webdav also special-cases temp files for PUT request body.
RE: Lighttpd(1.4.76) file upload: temp files are not in chunks of 1mb - Added by gstrauss 26 days ago
BTW, the latest lighttpd release is lighttpd 1.4.77. Please prefer to use the latest lighttpd release.