Browse Source
Merge pull request #1175 from ricjhill/master
Increased max upload size to 100 MB.
pull/1177/head
Hiroki Nakayama
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
frontend/i18n/en/rules.js
-
frontend/rules/index.js
-
nginx/nginx.conf
|
|
@ -29,7 +29,7 @@ export default { |
|
|
|
}, |
|
|
|
uploadFileRules: { |
|
|
|
fileRequired: 'File is required', |
|
|
|
fileLessThan1MB: 'File size should be less than 1 MB!' |
|
|
|
fileLessThan1MB: 'File size should be less than 100 MB!' |
|
|
|
}, |
|
|
|
passwordRules: { |
|
|
|
passwordRequired: 'Password is required', |
|
|
|
|
|
@ -57,7 +57,7 @@ export const fileFormatRules = (msg) => { |
|
|
|
export const uploadFileRules = (msg) => { |
|
|
|
return [ |
|
|
|
v => !!v || msg.fileRequired, |
|
|
|
v => !v || v.some(file => file.size < 1000000) || msg.fileLessThan1MB |
|
|
|
v => !v || v.some(file => file.size < 100000000) || msg.fileLessThan1MB |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
server { |
|
|
|
listen 80; |
|
|
|
charset utf-8; |
|
|
|
|
|
|
|
client_max_body_size 100M; |
|
|
|
add_header X-Frame-Options DENY; |
|
|
|
add_header X-Content-Type-Options nosniff; |
|
|
|
add_header X-XSS-Protection "1; mode=block"; |
|
|
|