Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
cloud-fb
Commits
dedbf50f
Commit
dedbf50f
authored
Jun 03, 2021
by
shiwenbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改附件大小校验为30MB
parent
67047776
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SandAttachmentController.java
...java/com/xyst/dinas/biz/web/SandAttachmentController.java
+1
-1
WarehouseAttachmentController.java
...com/xyst/dinas/biz/web/WarehouseAttachmentController.java
+1
-1
No files found.
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/SandAttachmentController.java
View file @
dedbf50f
...
...
@@ -177,7 +177,7 @@ public class SandAttachmentController {
private
void
chechFileUpload
(
MultipartFile
file
)
{
Assert
.
isTrue
(!
FileCheck
.
NOTSUPPORTFILETYPE
.
contains
(
Utils
.
getFileType
(
file
.
getOriginalFilename
())),
"不支持的文件类型"
);
Assert
.
isTrue
(
file
.
getSize
()
<
FileCheck
.
MAXLENGTH
,
"单个文件大小不能超过
1
0m!"
);
Assert
.
isTrue
(
file
.
getSize
()
<
FileCheck
.
MAXLENGTH
,
"单个文件大小不能超过
3
0m!"
);
}
@SuppressWarnings
(
"unchecked"
)
...
...
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/WarehouseAttachmentController.java
View file @
dedbf50f
...
...
@@ -177,7 +177,7 @@ public class WarehouseAttachmentController {
private
void
chechFileUpload
(
MultipartFile
file
)
{
Assert
.
isTrue
(!
FileCheck
.
NOTSUPPORTFILETYPE
.
contains
(
Utils
.
getFileType
(
file
.
getOriginalFilename
())),
"不支持的文件类型"
);
Assert
.
isTrue
(
file
.
getSize
()
<
FileCheck
.
MAXLENGTH
,
"单个文件大小不能超过
1
0m!"
);
Assert
.
isTrue
(
file
.
getSize
()
<
FileCheck
.
MAXLENGTH
,
"单个文件大小不能超过
3
0m!"
);
}
@SuppressWarnings
(
"unchecked"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment