Skip to content

Commit

Permalink
Allow GIFs larger than 6MB
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Oct 9, 2018
1 parent 73f8722 commit 59d58aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/views/file_input_view.js
Expand Up @@ -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;
Expand Down

0 comments on commit 59d58aa

Please sign in to comment.