Explorar o código

210725 bug fix2

yukyo %!s(int64=4) %!d(string=hai) anos
pai
achega
1ae1d00cfd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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("."):]
                 #sitepath = UPLOAD_PATH_MAP[0][0] + filepath[filepath.rfind("/")+1:] + "/img/"
                 if filepath == "title":
-                    sitepath = UPLOAD_PATH_MAP[0][0] + "../static/img/collection/"
+                    sitepath = UPLOAD_PATH_MAP[0][0] + "../../static/img/collection/"
                 else:
                     sitepath = UPLOAD_PATH_MAP[0][0] + filepath + "/img/"
                 oimgtype = file.filename[file.filename.rfind(".")+1:]