From 2633cb13b5f66734e32acb4decc7387035ae2eb6 Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Mon, 15 Jun 2026 16:17:38 +0200 Subject: [PATCH] fix: increase PHP upload limits to support large video files Raised upload_max_filesize from 512M to 8192M (8G) and post_max_size from 520M to 8704M to match the JS-side per-extension size caps that allow up to 8GB for video files (mp4, webm, mov, etc.). Also raised memory_limit to 512M and max_input_time to 600s. --- TODO.md | 6 ++++-- app/public/.user.ini | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/TODO.md b/TODO.md index 4882035..1d0ad82 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,7 @@ # TODO > Last updated: 2026-06-15 -> Context: Fix FilePond CSRF token staleness caused by autosave token rotation +> Context: Fix FilePond CSRF + adminOld return type; restore soft-deleted anglais/néerlandais languages ## Pending @@ -12,7 +12,9 @@ ## Completed -- [x] #filepond-csrf-stale Fix FilePond CSRF token going stale when autosave rotates it — headers are now functions that re-read meta tag on each request `(file-upload-filepond.js)` ✓ +- [x] #filepond-csrf-stale Fix FilePond CSRF token going stale when autosave rotates it `(file-upload-filepond.js)` ✓ +- [x] #adminold-return-type Fix adminOld closure return type from `:string` to `:string|array` `(FormBootstrap.php)` ✓ +- [x] #restore-languages Un-soft-delete anglais (id=2) and néerlandais (id=71) in dev DB ✓ - [x] #csp-media-iframe-fix Fix CSP `frame-ancestors 'none'` blocking PDF iframes — replaced `try_files` redirect with direct `fastcgi_pass` in `location = /media` so `add_header` CSP override survives internal nginx redirect `(nginx/xamxam.conf)` ✓ diff --git a/app/public/.user.ini b/app/public/.user.ini index 17526c2..367dfce 100644 --- a/app/public/.user.ini +++ b/app/public/.user.ini @@ -1,6 +1,6 @@ ; PHP upload limits — applies when served via PHP-FPM (nginx) -upload_max_filesize = 512M -post_max_size = 520M -memory_limit = 256M +upload_max_filesize = 8192M +post_max_size = 8704M +memory_limit = 512M max_execution_time = 300 -max_input_time = 300 +max_input_time = 600