当前位置:网站首页>Interface tests how to pass files in post requests

Interface tests how to pass files in post requests

2020-11-09 11:30:00 Test life path

When doing the interface test, we often encounter the interface of file upload , Today I will teach you how to use apipost Upload the document .

1. open apipost, Create a new interface for uploading files

image

2. find body This option , Enter the parameter name corresponding to the file , After the parameter name text Choose as file.

image

3. After the modification is completed , The following parameter value box has been displayed as please select file upload , Click on , Select the file to upload

image
image

4. After selection, click Save interface and click request send .

image

This is it. apipost How to achieve file upload operation .

Tool download address : https://www.apipost.cn

版权声明
本文为[Test life path]所创,转载请带上原文链接,感谢