Skip to content

Commit 2c7ec9a

Browse files
author
lorenzo
committed
Refactoring mime type utils method name.
1 parent f87643b commit 2c7ec9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/reedelk/file/component/FileRead.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public Message apply(FlowContext flowContext, Message message) {
9797

9898
return evaluated.map(filePath -> {
9999

100-
MimeType actualMimeType = MimeTypeUtils.mimeTypeFrom(autoMimeType, mimeType, filePath, MimeType.APPLICATION_BINARY);
100+
MimeType actualMimeType = MimeTypeUtils.fromFileExtensionOrParse(autoMimeType, filePath, mimeType, MimeType.APPLICATION_BINARY);
101101

102102
Path path = isBlank(basePath) ? Paths.get(filePath) : Paths.get(basePath, filePath);
103103

0 commit comments

Comments
 (0)