Mia Cheng 2 жил өмнө
parent
commit
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