file - 在 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 发布文件?
解决方案
推荐阅读
- android - Gradle Sync 一开始在 Android studio 上做什么,很慢?
- javascript - 在外部 HTML 文件上调用 jQuery 的 HTML 文件的 Javascript 代码
- e2e-testing - 端到端测试入门
- c - 如何知道或设置 PCI/PCIe 设备地址映射?
- c# - .Net Core 3.1 迁移后 C# Exchange Web 服务附件保存不起作用
- python - 使用 pyinstaller 导出到 .exe 后,Pygame 游戏无法运行
- php - 如何更新 laravel 中的类别下拉菜单
- apache-spark - 调用 o67.load 时出错:java.lang.NoClassDefFoundError: org/apache/hadoop/fs/staging/StagingDirectoryCapable
- android - 使用 Jetpack 导航架构组件从一个动态功能模块导航到另一个
- laravel - 在 Laravel 中创建一个使用 WEB 和 API 路由的网站?