소스 검색

add image 2

Mia Cheng 1 년 전
부모
커밋
f390a6bf97
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/api/classes.py
  2. 0 0
      app/api/images/test.jpeg

+ 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()}.jpg"
+    file.filename = f"{uuid.uuid4()}.jpeg"
     contents = await file.read()
  
     #save the file

+ 0 - 0
app/api/images/968b9b6fb0db2b364491b87fb1e792ee_t.jpeg → app/api/images/test.jpeg