Mia Cheng hai 1 ano
pai
achega
d8bb745be8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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