Skip to content

Commit

Permalink
Add 100MB file size limit for arbitrary file types (#1555)
Browse files Browse the repository at this point in the history
Previously we only had limits for audio, video, and image files.

FREEBIE
  • Loading branch information
scottnonnenberg authored Oct 11, 2017
1 parent e2d9d85 commit f95c65a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/views/file_input_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@
limitKb = 100000; break;
case 'video':
limitKb = 100000; break;
default:
limitKb = 100000; break;
}
if ((blob.size/1024).toFixed(4) >= limitKb) {
var units = ['kB','MB','GB'];
Expand Down

0 comments on commit f95c65a

Please sign in to comment.