Image type condition

merge-requests/30/head
Bob Mottram 2020-03-09 17:41:37 +00:00
parent 839b4b7b5b
commit 997aa948d8
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ def attachMedia(baseDir: str,httpPrefix: str,domain: str,port: int, \
postJson['attachment']=[attachmentJson] postJson['attachment']=[attachmentJson]
if baseDir: if baseDir:
if mediaType=='image': if mediaType.startswith('image/'):
removeMetaData(imageFilename,mediaFilename) removeMetaData(imageFilename,mediaFilename)
else: else:
copyfile(imageFilename,mediaFilename) copyfile(imageFilename,mediaFilename)