Hi all: I'm using Dropzone 5.7.2 to upload video files (QuickTime .mov). These things are pretty huge, but I can successfully upload a 350MB file with PHP limits set to:
ini_set('upload_max_filesize', '800M');
ini_set('post_max_size', '800M');
ini_set('memory_limit', '800M');
But I can't upload a 639MB file (or anything over 400MB) with the same settings. I'm running out of places to look for another mystery setting.
I'm running PHP 7.4.11, Apache 2.4.29 on Ubuntu 18.04.5.
Any ideas on what I may have missed?
The main issue is you can't set
upload_max_filesize
withini_set
https://www.php.net/manual/en/ini.core.php#ini.sect.file-uploads
PHP_INI_PERDIR
cannot be changed with ini_sethttps://www.php.net/manual/en/configuration.changes.modes.php
Also, the values shouldn't be the same. You need
memory_limit > post_max_size > upload_max_filesize
https://www.php.net/manual/en/ini.core.php#ini.post-max-size