Allow GIFs larger than 6MB

This commit is contained in:
Scott Nonnenberg 2018-10-09 09:31:49 -07:00
parent 73f8722c8d
commit 59d58aaab5

View file

@ -132,6 +132,12 @@
return;
}
const gifMaxSize = 25000 * 1024;
if (file.type === 'image/gif' && file.size <= gifMaxSize) {
resolve(file);
return;
}
if (file.type === 'image/gif') {
reject(new Error('GIF is too large'));
return;