Fix: add fallback for tga image

This commit is contained in:
Sheepit Renderfarm
2021-11-25 12:59:19 +00:00
parent 481b3660a2
commit 6b4bae868b

View File

@@ -232,6 +232,10 @@ public class Utils {
mimeType = URLConnection.guessContentTypeFromName(file); mimeType = URLConnection.guessContentTypeFromName(file);
} }
if (mimeType == null && file.endsWith(".tga")) { // fallback for TGA
mimeType = "image/tga";
}
return mimeType; return mimeType;
} }