创建 allowed_files.py

This commit is contained in:
2023-12-29 01:58:22 +08:00
parent dc2aedb06b
commit 9048134f55

2
utils/allowed_files.py Normal file
View File

@@ -0,0 +1,2 @@
def allowed_excel(filename):
return '.' in filename and filename.rsplit('.', 1)[1].lower() in {'xlsx', 'xls'}