Skip to content

Commit

Permalink
Fixed return type of TaskFileSystemService.getContentType
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadjakic committed Sep 5, 2024
1 parent 76ca6af commit b339351
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit b339351

Please sign in to comment.