From 085ea620b8fd1cb90b0b264bb3ee57759fc533fc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 4 Dec 2019 17:02:38 +0000 Subject: [PATCH] Back to document --- media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media.py b/media.py index cf2313dc..efa08db4 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': mediaType.split('/')[0], + 'type': 'Document', 'url': httpPrefix+'://'+domain+'/'+mediaPath } if useBlurhash and mediaType.startswith('image/'):