fix(接口测试): body 文件上传大小限制
This commit is contained in:
parent
d7313eabdd
commit
e8ee29da09
|
@ -71,8 +71,8 @@ quartz.enabled=true
|
|||
quartz.scheduler-name=msServerJob
|
||||
|
||||
# file upload
|
||||
spring.servlet.multipart.max-file-size=30MB
|
||||
spring.servlet.multipart.max-request-size=30MB
|
||||
spring.servlet.multipart.max-file-size=500MB
|
||||
spring.servlet.multipart.max-request-size=500MB
|
||||
|
||||
# actuator
|
||||
management.server.port=8083
|
||||
|
|
|
@ -57,10 +57,10 @@
|
|||
this.parameter.files.push(file);
|
||||
},
|
||||
uploadValidate(file) {
|
||||
// if (file.size / 1024 / 1024 > 20) {
|
||||
// this.$warning(this.$t('test_track.case.import.upload_limit_size'));
|
||||
// return false;
|
||||
// }
|
||||
if (file.size / 1024 / 1024 > 500) {
|
||||
this.$warning(this.$t('api_test.request.body_upload_limit_size'));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
},
|
||||
|
|
|
@ -443,6 +443,7 @@ export default {
|
|||
timeout_config: "Timeout Config",
|
||||
connect_timeout: "Connect Timeout",
|
||||
response_timeout: "Response Timeout",
|
||||
body_upload_limit_size: "The file size does not exceed 500 MB",
|
||||
assertions: {
|
||||
label: "Assertion",
|
||||
text: "Text",
|
||||
|
|
|
@ -444,6 +444,7 @@ export default {
|
|||
timeout_config: "超时设置",
|
||||
connect_timeout: "连接超时",
|
||||
response_timeout: "响应超时",
|
||||
body_upload_limit_size: "上传文件大小不能超过 500 MB!",
|
||||
assertions: {
|
||||
label: "断言",
|
||||
text: "文本",
|
||||
|
|
|
@ -443,6 +443,7 @@ export default {
|
|||
timeout_config: "超時設置",
|
||||
connect_timeout: "連接超時",
|
||||
response_timeout: "響應超時",
|
||||
body_upload_limit_size: "上傳文件大小不能超過 500 MB!",
|
||||
assertions: {
|
||||
label: "斷言",
|
||||
text: "文字",
|
||||
|
|
Loading…
Reference in New Issue