From b339351ba0faaf64be91f18a283e52647fbc4d92 Mon Sep 17 00:00:00 2001 From: Nenad Jakic Date: Thu, 5 Sep 2024 20:39:26 +0200 Subject: [PATCH] Fixed return type of TaskFileSystemService.getContentType --- .../nenadjakic/ocr/studio/service/TaskFileSystemService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/github/nenadjakic/ocr/studio/service/TaskFileSystemService.kt b/src/main/kotlin/com/github/nenadjakic/ocr/studio/service/TaskFileSystemService.kt index 19fe182..8ffff6e 100644 --- a/src/main/kotlin/com/github/nenadjakic/ocr/studio/service/TaskFileSystemService.kt +++ b/src/main/kotlin/com/github/nenadjakic/ocr/studio/service/TaskFileSystemService.kt @@ -30,7 +30,7 @@ class TaskFileSystemService( fun getContentType(file: File): MediaType = detector.detect(cloneInputStream(file.inputStream()), Metadata()) - fun getContentType(multiPartFile: MultipartFile): String { + fun getContentType(multiPartFile: MultipartFile): String? { var contentType = multiPartFile.contentType if ("application/octet-stream".equals(contentType, true)) {