From 76dbbe3837add884a370e608a70175e67f825281 Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Fri, 2 Nov 2018 03:37:49 +0900 Subject: [PATCH] Cap file size at 1 MB Will tweak later --- lib/utils/import/simplenote/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/import/simplenote/index.js b/lib/utils/import/simplenote/index.js index 53f0d96c3..daba50ebb 100644 --- a/lib/utils/import/simplenote/index.js +++ b/lib/utils/import/simplenote/index.js @@ -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; }