
#Postman file upload example how to#
Hope you got an idea how to call file upload REST service using Postman. But, if you want to set the Content-Type: multipart/form-data, then you need to set the boundary field correctly. The important areas have been highlighted in the below image:īe careful with explicit Content-Type header and let the Postman fill this header for you. If your REST service supports multiple files upload then you can select multiple files for upload. So select your file and hit the Send button. Next you will get Select Files button.On the right side column you will see a pale-grey-on-white dropdown for File with two options – File and Text. Now input your file parameter name for the Key.Enter the file upload REST service URL in the input field on the right side of the above method.Before we dissect what a form-data request looks like, heres necessary setup: Lines above.

Next open the Postman tool and follow the instructions given below to test file upload REST service. NOTE This will be referring to Boxs Upload File API endpoint. Make sure you have the Postman tool installed in your system.
#Postman file upload example windows#
Only thing you need to make sure is while you want to upload multiple files you need to hold Ctrl key (on Windows OS) for selecting multiple files using browse or Select Files button.

The REST service that allows single or multiple files to be uploaded can be written in any programming languages. I am going to show you here an example how to call file upload REST API using Postman. When it comes to sending files to a server, however, it can be a time-consuming process.

When dealing with web services, uploading files may not be one of the most frequent tasks. REST service or API that uploads a single file or multiple files, Postman tool Call File Upload REST API Ive already written a PHP Rest API CRUD tutorial, but this one doesnt cover file upload to the server through Rest API. Even you can use Curl command or any other clients to test your file upload service. There are other REST client extensions in Chrome and Firefox browsers but these extensions do not allow to test your file upload REST services. It is also used to test your REST service which uploads a single file or multiple files to remote server. Postman is a very popular REST client tool which is used to test your REST services. Here I will show you how to call file upload REST API using Postman.
