瀏覽代碼

210725 bug fix2

yukyo 3 年之前
父節點
當前提交
1ae1d00cfd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backstage/upload/routes.py

+ 1 - 1
backstage/upload/routes.py

@@ -46,7 +46,7 @@ def upload_post(filepath):
                 #fname = str(uuid.uuid4()) + file.filename[file.filename.rfind("."):]
                 #fname = str(uuid.uuid4()) + file.filename[file.filename.rfind("."):]
                 #sitepath = UPLOAD_PATH_MAP[0][0] + filepath[filepath.rfind("/")+1:] + "/img/"
                 #sitepath = UPLOAD_PATH_MAP[0][0] + filepath[filepath.rfind("/")+1:] + "/img/"
                 if filepath == "title":
                 if filepath == "title":
-                    sitepath = UPLOAD_PATH_MAP[0][0] + "../static/img/collection/"
+                    sitepath = UPLOAD_PATH_MAP[0][0] + "../../static/img/collection/"
                 else:
                 else:
                     sitepath = UPLOAD_PATH_MAP[0][0] + filepath + "/img/"
                     sitepath = UPLOAD_PATH_MAP[0][0] + filepath + "/img/"
                 oimgtype = file.filename[file.filename.rfind(".")+1:]
                 oimgtype = file.filename[file.filename.rfind(".")+1:]