Merge pull request #6308 from JediKev/issue/file-upload-size

Reviewed-By: Peter Rotich <peter@osticket.com>
This commit is contained in:
Peter Rotich
2022-11-08 11:27:46 -06:00
committed by GitHub

View File

@@ -3972,7 +3972,11 @@ class FileUploadField extends FormField {
}
function getConfiguration() {
global $cfg;
$config = parent::getConfiguration();
// If no size present default to system setting
$config['size'] ??= $cfg->getMaxFileSize();
$_types = self::getFileTypes();
$mimetypes = array();
$extensions = array();