Skip to content

Commit a6a9473

Browse files
authored
Merge pull request RonRadtke#196 from cvrobot/patch-1
Fix ext check condition not correct.
2 parents 2582b7c + 4e8636e commit a6a9473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/ReactNativeBlobUtil/Utils/MimeType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class MimeType {
2727
public static String getFullFileName(String name, String mimeType) {
2828
// Prior to API 29, MimeType.BINARY_FILE has no file extension
2929
String ext = MimeType.getExtensionFromMimeType(mimeType);
30-
if ((ext == null || ext.isEmpty()) || name.endsWith("." + "ext")) return name;
30+
if ((ext == null || ext.isEmpty()) || name.endsWith("." + ext)) return name;
3131
else {
3232
String fn = name + "." + ext;
3333
if (fn.endsWith(".")) return StringUtils.stripEnd(fn, ".");

0 commit comments

Comments
 (0)