IO-998 Resolve media rename issues for non images.

This commit is contained in:
Patrick Fic
2021-05-27 08:49:43 -07:00
parent 48ecfe0d98
commit 1b0e37be45
2 changed files with 15 additions and 1 deletions

View File

@@ -176,6 +176,7 @@ export const uploadToCloudinary = async (
}
};
//Also needs to be updated in media JS and mobile app.
export function DetermineFileType(filetype) {
if (!filetype) return "auto";
else if (filetype.startsWith("image")) return "image";