gpt4 book ai didi

java - JMeter 如何增加上传文件的大小

转载 作者:行者123 更新时间:2023-11-30 08:34:01 27 4
gpt4 key购买 nike

我有一个通过 API rest POST 请求上传文件的脚本。我只能上传大小小于 1048576 的文件

错误是

HTTP Status 500 - Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field filestream exceeds its maximum permitted size of 1048576 bytes.

也许有人知道如何增加那个尺寸?

谢谢

最佳答案

Jmeter端没有限制。从您显示的响应来看,这是服务器限制,错误是由 Tomcat 触发的,请参阅:

  • 字段文件流超过了其允许的最大大小 1048576 字节。

参见:

关于java - JMeter 如何增加上传文件的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39108079/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com