Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段启岩
beyond-clouds
Commits
1eea71e8
Commit
1eea71e8
authored
Feb 17, 2020
by
段启岩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件上传限制
parent
619eb270
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
src/main/java/cn/meteor/beyondclouds/core/constant/SysConstants.java
+1
-1
src/main/java/cn/meteor/beyondclouds/modules/resource/enums/UploadType.java
+2
-2
src/main/resources/application-dev.yml
+2
-2
src/main/resources/application-prod.yml
+2
-2
src/main/resources/application.yml
+2
-2
No files found.
src/main/java/cn/meteor/beyondclouds/core/constant/SysConstants.java
View file @
1eea71e8
...
...
@@ -32,7 +32,7 @@ public class SysConstants {
public
static
final
long
DEFAULT_MAX_SIZE
=
1024
*
1024
*
3
;
public
static
final
Set
<
String
>
SUFFIXES_OF_IMAGE
=
Set
.
of
(
"bmp"
,
"jpg"
,
"png"
,
"tif"
,
"gif"
,
"pcx"
,
"tga"
,
"exif"
,
"fpx"
,
"svg"
,
"psd"
,
"cdr"
,
"pcd"
,
"dxf"
,
"ufo"
,
"eps"
);
public
static
final
Set
<
String
>
SUFFIXES_OF_IMAGE
=
Set
.
of
(
"bmp"
,
"jpeg"
,
"jpg"
,
"png"
,
"tif"
,
"gif"
,
"pcx"
,
"tga"
,
"exif"
,
"fpx"
,
"svg"
,
"psd"
,
"cdr"
,
"pcd"
,
"dxf"
,
"ufo"
,
"eps"
);
public
static
final
Set
<
String
>
SUFFIXES_OF_VIDEO
=
Set
.
of
(
".mp4"
,
".oog"
,
".webm"
);
...
...
src/main/java/cn/meteor/beyondclouds/modules/resource/enums/UploadType.java
View file @
1eea71e8
...
...
@@ -50,13 +50,13 @@ public enum UploadType {
/**
* 上传CMS内容图片
*/
CMS_IMAGES
(
100
,
"cms/images/"
,
1024
*
1024
*
10L
,
SysConstants
.
SUFFIXES_OF_IMAGE
),
CMS_IMAGES
(
100
,
"cms/images/"
,
SysConstants
.
DEFAULT_MAX_SIZE
,
SysConstants
.
SUFFIXES_OF_IMAGE
),
/**
* 上传动态图片
*/
TRENDS_VIDEO
(
101
,
"trends/videos/"
,
SysConstants
.
DEFAULT_MAX_SIZE
,
SysConstants
.
SUFFIXES_OF_VIDEO
);
TRENDS_VIDEO
(
101
,
"trends/videos/"
,
1024
*
1024
*
10L
,
SysConstants
.
SUFFIXES_OF_VIDEO
);
private
int
ordinal
;
...
...
src/main/resources/application-dev.yml
View file @
1eea71e8
...
...
@@ -48,8 +48,8 @@ spring:
servlet
:
multipart
:
max-file-size
:
1
0
MB
max-request-size
:
1
0
MB
max-file-size
:
1
5
MB
max-request-size
:
1
5
MB
server
:
tomcat
:
...
...
src/main/resources/application-prod.yml
View file @
1eea71e8
...
...
@@ -48,8 +48,8 @@ spring:
servlet
:
multipart
:
max-file-size
:
1
0
MB
max-request-size
:
1
0
MB
max-file-size
:
1
5
MB
max-request-size
:
1
5
MB
server
:
tomcat
:
...
...
src/main/resources/application.yml
View file @
1eea71e8
...
...
@@ -46,8 +46,8 @@ spring:
value-serializer
:
org.apache.kafka.common.serialization.StringSerializer
servlet
:
multipart
:
max-file-size
:
1
0
MB
max-request-size
:
1
0
MB
max-file-size
:
1
5
MB
max-request-size
:
1
5
MB
server
:
tomcat
:
...
...
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