Image type condition

main
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]
if baseDir:
if mediaType=='image':
if mediaType.startswith('image/'):
removeMetaData(imageFilename,mediaFilename)
else:
copyfile(imageFilename,mediaFilename)