{"record":{"id":"2453442a334c1164","repo":"coollabsio/coolify","slug":"uploaded-file-is-empty","errorCode":null,"errorMessage":"Uploaded file is empty.","messagePattern":"Uploaded file is empty\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Livewire/Server/TransferImport.php","lineNumber":57,"sourceCode":"    public ?string $importedServerUuid = null;\n\n    public function mount(): void\n    {\n        $this->ensureDevelopmentAvailability();\n        $this->authorize('create', Server::class);\n    }\n\n    public function updatedBundleFile(): void\n    {\n        $this->ensureDevelopmentAvailability();\n\n        if (! $this->bundleFile) {\n            return;\n        }\n        try {\n            $contents = $this->bundleFile->get();\n            if (! is_string($contents) || blank($contents)) {\n                throw new \\RuntimeException('Uploaded file is empty.');\n            }\n            $this->bundleJson = $contents;\n            $this->dispatch('success', 'Bundle file loaded into the form.');\n        } catch (Throwable $e) {\n            handleError($e, $this);\n        }\n    }\n\n    /**\n     * @return array<string, mixed>\n     */\n    private function resolveBundle(): array\n    {\n        $raw = trim($this->bundleJson);\n        if ($raw === '') {\n            throw new \\RuntimeException('Paste a transfer bundle JSON or upload a file.');\n        }\n","sourceCodeStart":39,"sourceCodeEnd":75,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Server/TransferImport.php#L39-L75","documentation":"Error \"Uploaded file is empty.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Server/TransferImport.php:57 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":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}