Merge pull request #378 from lbryio/fix-file-limit

feat(publish): increased file limits to 50mb for gif and video
This commit is contained in:
Bill Bittner 2018-03-07 09:31:40 -08:00 committed by GitHub
commit d658049bbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,13 +16,13 @@ module.exports = {
} }
break; break;
case 'image/gif': case 'image/gif':
if (file.size > 30000000) { if (file.size > 50000000) {
throw new Error('Sorry, GIFs are limited to 30 megabytes.'); throw new Error('Sorry, GIFs are limited to 50 megabytes.');
} }
break; break;
case 'video/mp4': case 'video/mp4':
if (file.size > 20000000) { if (file.size > 50000000) {
throw new Error('Sorry, videos are limited to 20 megabytes.'); throw new Error('Sorry, videos are limited to 50 megabytes.');
} }
break; break;
default: default: