Explorar o código

Allow excel documents

JoostSijm %!s(int64=6) %!d(string=hai) anos
pai
achega
7b57bc1698
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/modules/backend/modules/file/app.py

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

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