octobercms/october · error · ApplicationException

File not found

Error message

File not found

What it means

Error "File not found" thrown in octobercms/october.

Source

Thrown at modules/backend/models/ExportModel.php:80

    /**
     * exportDownload returns a download response
     * @return \Illuminate\Http\Response
     */
    public function exportDownload($outputName, $options = [])
    {
        $columns = $options['columns'] ?? [];

        return $this->download($this->export($columns, $options), $outputName);
    }

    /**
     * download a previously compiled export file.
     * @return \Illuminate\Http\Response
     */
    public function download($name, $outputName = null)
    {
        if (!preg_match('/^oc[0-9a-z]*$/i', $name)) {
            throw new ApplicationException(__("File not found"));
        }

        $csvPath = $this->getTemporaryExportPath($name);
        if (!file_exists($csvPath)) {
            throw new ApplicationException(__("File not found"));
        }

        if (str_ends_with($name, 'xzip')) {
            $contentType = 'application/zip';
        }
        elseif (str_ends_with($name, 'xjson')) {
            $contentType = 'application/json';
        }
        else {
            $contentType = 'text/csv';
        }

        return Response::download($csvPath, $outputName, [

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/models/ExportModel.php:80 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21). Data as JSON: /api/errors/7ac7afd7e29cd1da. Report an issue: GitHub.