{"record":{"id":"315b062952e7439b","repo":"octobercms/october","slug":"maximum-allowed-size-for-uploaded-files","errorCode":null,"errorMessage":"Maximum allowed size for uploaded files: ","messagePattern":"Maximum allowed size for uploaded files: ","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/formwidgets/FileUpload.php","lineNumber":163,"sourceCode":"        return $this->makePartial('fileupload');\n    }\n\n    /**\n     * prepareVars for the view data\n     */\n    protected function prepareVars()\n    {\n        if ($this->formField->disabled) {\n            $this->previewMode = true;\n        }\n\n        if ($this->previewMode) {\n            $this->useCaption = false;\n        }\n\n        $maxPhpSetting = $this->getUploadMaxFilesize();\n        if ($maxPhpSetting && $this->maxFilesize > $maxPhpSetting) {\n            throw new ApplicationException('Maximum allowed size for uploaded files: ' . $maxPhpSetting);\n        }\n\n        $this->vars['name'] = $this->getFieldName();\n        $this->vars['fileList'] = $fileList = $this->getFileList();\n        $this->vars['singleFile'] = $fileList->first();\n        $this->vars['size'] = $this->formField->size;\n        $this->vars['displayMode'] = $this->getDisplayMode();\n        $this->vars['emptyIcon'] = $this->getConfig('emptyIcon', 'icon-upload');\n        $this->vars['imageHeight'] = $this->imageHeight;\n        $this->vars['imageWidth'] = $this->imageWidth;\n        $this->vars['acceptedFileTypes'] = $this->getAcceptedFileTypes(true);\n        $this->vars['maxFilesize'] = $this->maxFilesize;\n        $this->vars['maxFiles'] = $this->maxFiles;\n        $this->vars['cssDimensions'] = $this->getCssDimensions();\n        $this->vars['useCaption'] = $this->useCaption;\n        $this->vars['externalToolbarBus'] = $this->externalToolbarBus;\n    }\n","sourceCodeStart":145,"sourceCodeEnd":181,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/formwidgets/FileUpload.php#L145-L181","documentation":"Error \"Maximum allowed size for uploaded files: \" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/formwidgets/FileUpload.php:163 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}