updated file limits to 50mb for gif and video
This commit is contained in:
parent
0e705fdfa3
commit
f9cbf8496d
1 changed files with 4 additions and 4 deletions
|
@ -16,13 +16,13 @@ module.exports = {
|
|||
}
|
||||
break;
|
||||
case 'image/gif':
|
||||
if (file.size > 30000000) {
|
||||
throw new Error('Sorry, GIFs are limited to 30 megabytes.');
|
||||
if (file.size > 50000000) {
|
||||
throw new Error('Sorry, GIFs are limited to 50 megabytes.');
|
||||
}
|
||||
break;
|
||||
case 'video/mp4':
|
||||
if (file.size > 20000000) {
|
||||
throw new Error('Sorry, videos are limited to 20 megabytes.');
|
||||
if (file.size > 50000000) {
|
||||
throw new Error('Sorry, videos are limited to 50 megabytes.');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue