Ver código fonte

Allow docx files

JoostSijm 6 anos atrás
pai
commit
d3fea33010
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/modules/backend/modules/file/app.py

+ 1 - 1
app/modules/backend/modules/file/app.py

@@ -20,7 +20,7 @@ BLUEPRINT = Blueprint(
 )
 
 def allowed_file(filename):
-    allowed_extensions = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
+    allowed_extensions = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif', 'docx'])
     return '.' in filename and \
            filename.rsplit('.', 1)[1].lower() in allowed_extensions