首页 > 解决方案 > 在 Katalon 中使用 POST API 上传文件

问题描述

我需要上传一个 2MB 的 .yml 文件作为 POST 请求正文。我选择正文类型作为文件并上传了文件。当我将标头作为 Content-Type : multipart/form-data 时,我收到错误消息Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected because no multipart boundary was found 当我没有提及 Content-type 时,错误是Content type '' not supported

如何使用 Katalon 发布文件?

标签: filepostkatalon-studio

解决方案


推荐阅读