创建 allowed_files.py
This commit is contained in:
2
app/utils/allowed_files.py
Normal file
2
app/utils/allowed_files.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def allowed_excel(filename):
|
||||
return '.' in filename and filename.rsplit('.', 1)[1].lower() in {'xlsx', 'xls'}
|
||||
Reference in New Issue
Block a user