{"record":{"id":"8dbaf2d2ca644e49","repo":"octobercms/october","slug":"file-missing-from-request","errorCode":null,"errorMessage":"File missing from request","messagePattern":"File missing from request","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/formwidgets/FileUpload.php","lineNumber":478,"sourceCode":"        $this->addJs('js/fileupload.js');\n    }\n\n    /**\n     * @inheritDoc\n     */\n    public function getSaveValue($value)\n    {\n        return FormField::NO_SAVE_DATA;\n    }\n\n    /**\n     * onUpload handler for the server-side processing of uploaded files\n     */\n    public function onUpload()\n    {\n        try {\n            if (!Input::hasFile('file_data')) {\n                throw new ApplicationException('File missing from request');\n            }\n\n            $fileModel = $this->getRelationModel();\n            $uploadedFile = files('file_data');\n\n            $validationRules = ['max:'.($this->maxFilesize * 1024)];\n            if ($fileTypes = $this->getAcceptedFileTypes()) {\n                $validationRules[] = 'extensions:'.$fileTypes;\n            }\n\n            if ($this->mimeTypes) {\n                $validationRules[] = 'mimes:'.$this->mimeTypes;\n            }\n\n            $validation = Validator::make(\n                ['file_data' => $uploadedFile],\n                ['file_data' => $validationRules]\n            );","sourceCodeStart":460,"sourceCodeEnd":496,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/formwidgets/FileUpload.php#L460-L496","documentation":"Error \"File missing from request\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/formwidgets/FileUpload.php:478 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"}