mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 10:15:28 +02:00
Attempt fix for processwire/processwire-issues#1467 maxFilesize PHP 8.2 notice per @matjazpotocnik
This commit is contained in:
@@ -213,7 +213,7 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel
|
||||
$max = $this->strToBytes($filesize);
|
||||
$phpMax = $this->strToBytes(ini_get('upload_max_filesize'));
|
||||
if($phpMax < $max) $max = $phpMax;
|
||||
$this->maxFilesize = $max;
|
||||
parent::set('maxFilesize', $max);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user