Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upload file (pdf) using raw in Postman?

Tags:

postman

I am trying to automate attaching a form data pdf file in Postman. Can it be done using raw in Postman? Please assist. Thank you!

like image 630
Devi Avatar asked Jun 14 '17 23:06

Devi


People also ask

Can we send file from raw data in Postman?

Files can only be uploaded using the 'binary' and 'form-data' option. Postman considers raw data as a string.

Can we upload file in Postman?

To upload a file using postman, you begin by calling the API using a POST HTTP request. This launches a Postman template. After calling the API, create a file processing method under the collections tab. On this tab, you have options to upload, download, or visualize your file.


1 Answers

Files can only be uploaded using the 'binary' and 'form-data' option. Postman considers raw data as a string.

Have a look at the documentation for a complete list of options Postman provides: https://www.getpostman.com/docs/postman/sending_api_requests/requests

like image 122
Ray Avatar answered Sep 20 '22 06:09

Ray