1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 03:34:33 +02:00

Attempt fix for processwire/processwire-issues#1467 maxFilesize PHP 8.2 notice per @matjazpotocnik

This commit is contained in:
Ryan Cramer
2022-12-29 09:31:59 -05:00
parent b7e5d338f7
commit d6c54bda6a

View File

@@ -213,7 +213,7 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel
$max = $this->strToBytes($filesize); $max = $this->strToBytes($filesize);
$phpMax = $this->strToBytes(ini_get('upload_max_filesize')); $phpMax = $this->strToBytes(ini_get('upload_max_filesize'));
if($phpMax < $max) $max = $phpMax; if($phpMax < $max) $max = $phpMax;
$this->maxFilesize = $max; parent::set('maxFilesize', $max);
return $this; return $this;
} }