How to send file to fastapi endpoint using postman

后端 未结 2 1835
深忆病人
深忆病人 2020-12-12 05:02

I faced the difficulty of testing api using postman. Through swagger file upload functionality works correctly, I get a saved file on my hard disk. I would like to understan

2条回答
  •  伪装坚强ぢ
    2020-12-12 05:06

    As mentioned in the response, I could see the key for the file uploaded is missing. Mention the key for the file in body params as file.

提交回复
热议问题