Skip to content

Commit

Permalink
Cap file size at 1 MB
Browse files Browse the repository at this point in the history
Will tweak later
  • Loading branch information
mirka committed Nov 2, 2018
1 parent 03d4f1c commit 76dbbe3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils/import/simplenote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class SimplenoteImporter extends EventEmitter {
return;
}

// Limit file size we will read to 2mb
if (file.size > 2000000) {
this.emit('status', 'error', 'File should be less than 2 MB.');
// Limit file size we will read to 1mb
if (file.size > 1000000) {
this.emit('status', 'error', 'File should be less than 1 MB.');
return;
}

Expand Down

0 comments on commit 76dbbe3

Please sign in to comment.