From 997aa948d8b3a8688b6c93dd27662c071282a420 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 9 Mar 2020 17:41:37 +0000 Subject: [PATCH] Image type condition --- media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media.py b/media.py index a9a9ef8e..0f991c94 100644 --- a/media.py +++ b/media.py @@ -169,7 +169,7 @@ def attachMedia(baseDir: str,httpPrefix: str,domain: str,port: int, \ postJson['attachment']=[attachmentJson] if baseDir: - if mediaType=='image': + if mediaType.startswith('image/'): removeMetaData(imageFilename,mediaFilename) else: copyfile(imageFilename,mediaFilename)