From 92941ac85746c56a5b3eab97aad933cc7ea6f60d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 4 Dec 2019 16:20:54 +0000 Subject: [PATCH] Attachment type --- media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media.py b/media.py index efa08db4..cf2313dc 100644 --- a/media.py +++ b/media.py @@ -115,7 +115,7 @@ def attachMedia(baseDir: str,httpPrefix: str,domain: str,port: int, \ attachmentJson={ 'mediaType': mediaType, 'name': description, - 'type': 'Document', + 'type': mediaType.split('/')[0], 'url': httpPrefix+'://'+domain+'/'+mediaPath } if useBlurhash and mediaType.startswith('image/'):