{"record":{"id":"9e2f89ca7473a24d","repo":"OtterMind/Chat2DB","slug":"file-upload-failed","errorCode":"file.upload.failed","errorMessage":"file.upload.failed","messagePattern":"file\\.upload\\.failed","errorType":"exception","errorClass":"BusinessException","httpStatus":null,"severity":"error","filePath":"chat2db-community-server/chat2db-community-domain/chat2db-community-domain-api/src/main/java/ai/chat2db/community/domain/api/service/file/IUploadFileService.java","lineNumber":29,"sourceCode":" */\npublic interface IUploadFileService<T> {\n\n    String extension(T file);\n\n    File transferToTempFile(T file) throws IOException;\n\n    default File transferToTempFile(T file, ConfigFileTypeEnum expectedType) {\n        if (expectedType != null && !expectedType.name().equalsIgnoreCase(extension(file))) {\n            throw new BusinessException(\"file.type.unsupported\");\n        }\n        return transferToTempFileOrThrow(file);\n    }\n\n    default File transferToTempFileOrThrow(T file) {\n        try {\n            return transferToTempFile(file);\n        } catch (IOException e) {\n            throw new BusinessException(\"file.upload.failed\", new Object[]{e.getMessage()}, e);\n        }\n    }\n}\n","sourceCodeStart":11,"sourceCodeEnd":33,"githubUrl":"https://github.com/OtterMind/Chat2DB/blob/5ee1e990e73fbcae1969dc554be254fedb3ab888/chat2db-community-server/chat2db-community-domain/chat2db-community-domain-api/src/main/java/ai/chat2db/community/domain/api/service/file/IUploadFileService.java#L11-L33","documentation":"Error \"file.upload.failed\" thrown in OtterMind/Chat2DB.","triggerScenarios":"The file upload operation failed during transfer or persistence.","commonSituations":"See trigger scenarios.","solutions":["Verify the file exists and is readable, then retry the upload.","Check server disk space and storage directory permissions."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ee1e990e73fbcae1969dc554be254fedb3ab888","analyzedAt":"2026-08-14T07:05:03.077Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}