浏览代码

add image 3

Mia Cheng 2 年之前
父节点
当前提交
d8bb745be8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/api/classes.py

+ 1 - 1
app/api/classes.py

@@ -244,7 +244,7 @@ IMAGEDIR = "images/"
 @classes.post("/upload/")
 async def create_upload_file(file: UploadFile = File(...)):
  
-    file.filename = f"{uuid.uuid4()}.jpeg"
+    #file.filename = f"{uuid.uuid4()}.jpeg"
     contents = await file.read()
  
     #save the file