简体   繁体   English

邮递员要求上传文件

[英]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. 我在这个网站上: https : //www.free-ocr.com/ ,它允许您上传文件,并作为响应返回该文件中的文本。

When I upload a file it creates a POST request with multi-part form data with the following headers. 当我上传文件时,它将创建包含以下标题的包含多部分表单数据的POST请求。

在此处输入图片说明

In return it gets the folowing response, the one in which I am interested : 作为回报,它得到了以下响应,我对此感兴趣: 在此处输入图片说明

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. 但是,当我尝试使用POST方法在POSTMAN中复制整个内容并使用form-data上载文件时,没有得到与预期相同的响应。 Can somebody help me sort out what am I doing wrong? 有人可以帮我弄清楚我在做什么错吗?

邮递员屏幕截图 在此处输入图片说明 you just need to select type as file in body then select the file . 您只需要在正文中选择类型作为文件,然后选择文件即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 上传文件 Api 请求在 postman 中有效,但在 nodejs 中无效并反应 MERN - Upload File Api request works in postman but not in nodejs and react MERN 为什么在 Node.js 中使用邮递员上传文件时请求正文为空 - Why request body is null in file upload with postman in Node.js 在 postman 中上传文件的扩展名未经验证 - the extension to upload a file in postman is not validated 在POSTMAN中测试POST请求时,文件上传到服务器,用multer实现,不起作用 - When testing POST request in POSTMAN, the file upload to the server, implemented with multer, does not work 文件上传错误 - 适用于 Postman 但不适用于前端 - File Upload Error - Works in Postman but not on frontend 如何使用Node.js和Postman将文件上传到Firebase? - How use nodejs and postman to upload file into firebase? 在 POSTMAN 上使用 PUT/POST 方法上传文件 - Upload a file with PUT/POST method on POSTMAN PUT 请求适用于 Postman 但不是 deno typescript 文件作为提取请求 - PUT request works in Postman but not a deno typescript file as a fetch request 如何使用Node.js和Postman获取并上传文件 - How to get the file and upload it using Node.js and Postman 如何使用Node.js和Postman将文件上传到cloudinary - How to upload file to cloudinary using Node.js and Postman
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM