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/'):