jonathanjordan21 commited on
Commit
3c0e19c
·
verified ·
1 Parent(s): 778f8dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,7 +18,8 @@ UPLOAD_DIR.mkdir(exist_ok=True)
18
 
19
  @app.post("/upload")
20
  async def upload_file(file: UploadFile = File(...)):
21
- file_path = UPLOAD_DIR / file.filename
 
22
  with file_path.open("wb") as buffer:
23
  shutil.copyfileobj(file.file, buffer)
24
 
 
18
 
19
  @app.post("/upload")
20
  async def upload_file(file: UploadFile = File(...)):
21
+ print(file)
22
+ file_path = file.filename
23
  with file_path.open("wb") as buffer:
24
  shutil.copyfileobj(file.file, buffer)
25