We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2582b7c + 4e8636e commit a6a9473Copy full SHA for a6a9473
android/src/main/java/com/ReactNativeBlobUtil/Utils/MimeType.java
@@ -27,7 +27,7 @@ public class MimeType {
27
public static String getFullFileName(String name, String mimeType) {
28
// Prior to API 29, MimeType.BINARY_FILE has no file extension
29
String ext = MimeType.getExtensionFromMimeType(mimeType);
30
- if ((ext == null || ext.isEmpty()) || name.endsWith("." + "ext")) return name;
+ if ((ext == null || ext.isEmpty()) || name.endsWith("." + ext)) return name;
31
else {
32
String fn = name + "." + ext;
33
if (fn.endsWith(".")) return StringUtils.stripEnd(fn, ".");
0 commit comments