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