创建 allowed_files.py
parent
bb2104539c
commit
1ebdfa44c8
|
|
@ -0,0 +1,2 @@
|
||||||
|
def allowed_excel(filename):
|
||||||
|
return '.' in filename and filename.rsplit('.', 1)[1].lower() in {'xlsx', 'xls'}
|
||||||
Reference in New Issue