diff --git a/ereuse_devicehub/resources/documents/documents.py b/ereuse_devicehub/resources/documents/documents.py index f45cf808..7003ee91 100644 --- a/ereuse_devicehub/resources/documents/documents.py +++ b/ereuse_devicehub/resources/documents/documents.py @@ -275,7 +275,14 @@ class StampsView(View): ok = '100% coincidence. The attached file contains data 100% existing in \ to our backend' result = ('Bad', bad) - if file_check.mimetype in ['text/csv', 'application/pdf']: + import pdb; pdb.set_trace() + mime = ['text/csv', 'application/pdf', 'text/plain','text/markdown', + 'image/jpeg', 'image/png', 'text/html', + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'application/vnd.oasis.opendocument.spreadsheet', + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'application/msword'] + if file_check.mimetype in mime: if verify_hash(file_check): result = ('Ok', ok)