![]() Now you’ll see the selected filename(s) in the Value column: 3 – Send the requestĬlick the Send button to send the request. Finally, click the Select Files button (the name may be different depending on which version of Postman you’re using):Ĭlicking Select Files will open a file selection dialog window. If the web API is receiving the file with a parameter / property, then make sure this key name matches the parameter name. Click this dropdown and set it to File.įill in the key name. Then hover your mouse over the row so you can see a dropdown appear that says Text. In the Body tab, select the form-data option. In this example, I’m testing a web API that’s running locally. Set the method to POST, and fill in the request URL: In Postman, create a new request by clicking the plus (+) button: ![]() In this article, I’ll show how to upload a file with Postman by posting a file in a multipart/form-data request. choose your binary file to be uploaded by clicking choose files button. ![]() Type File in text box where placeholder is key. Choose File option instead of text from dropdown at the right side. In body form-data option should be remain as default. This simplifies development because you don’t have to write your own client-side code for sending the test requests. Content-type should be multipart-formdata in Headers. When you’re developing a web API with file uploading, you can use Postman to send files in test requests. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |