Madhur
Madhur

Reputation: 857

postman request to upload a file

I am at this site : https://www.free-ocr.com/ which allows you to upload a file and in response returns text from that file.

When I upload a file it creates a POST request with multi-part form data with the following headers.

enter image description here

In return it gets the folowing response, the one in which I am interested : enter image description here

However, when I try to replicate this whole thing in POSTMAN using POST method and upload a file using form-data, I do not get the same response as it was intended. Can somebody help me sort out what am I doing wrong?

Upvotes: 0

Views: 360

Answers (1)

Sanjay
Sanjay

Reputation: 1017

postman screenshot enter image description here you just need to select type as file in body then select the file .

Upvotes: 1

Related Questions