Allow GIFs larger than 6MB

pull/27/head^2
Scott Nonnenberg 7 years ago
parent 73f8722c8d
commit 59d58aaab5

@ -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;

Loading…
Cancel
Save