修复了上传页面无法正常显示进度条的问题 支持多文件上传

This commit is contained in:
2024-04-17 11:43:29 +08:00
parent 80014a268d
commit 59df4edf77
5 changed files with 101 additions and 74 deletions

12
file.py
View File

@@ -5,12 +5,12 @@ from PIL import Image
app_conf = app_conf.conf()
def init():
try:
os.makedirs(app_conf.get("file", "inputdir"))
os.makedirs(app_conf.get("file", "storedir"))
os.makedirs(app_conf.get("file", "tmpdir"))
except:
pass
paths = ("inputdir","storedir","tmpdir")
for path in paths:
try:
os.makedirs(app_conf.get("file", path))
except Exception as e:
print(e)
def auotLoadFile():