forked from indymedia/epicyon
Image type condition
parent
839b4b7b5b
commit
997aa948d8
2
media.py
2
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)
|
||||
|
|
Loading…
Reference in New Issue