@@ -214,7 +214,8 @@ async def create_upload_file(file: UploadFile = File(...)):
image = Image.open(io.BytesIO(contents))
image= image.convert("RGB")
image.save(img_upload_folder+img_name+'.jpg')
- except:
+ except Exception as e:
+ print(e)
return {'msg':'檔案無法使用'}
return {"msg": 'www.choozmo.com:8168/'+tmp_img_sub_folder+img_name+'.jpg'}