mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
limit max imported file size to 250 MiB, #3108
This commit is contained in:
@@ -215,7 +215,7 @@ function update(req) {
|
||||
|
||||
setInterval(() => {
|
||||
for (const key in partialRequests) {
|
||||
if (Date.now() - partialRequests[key].createdAt > 5 * 60 * 1000) {
|
||||
if (Date.now() - partialRequests[key].createdAt > 20 * 60 * 1000) {
|
||||
log.info(`Cleaning up unfinished partial requests for ${key}`);
|
||||
|
||||
delete partialRequests[key];
|
||||
|
||||
Reference in New Issue
Block a user