From dd61e6e09a0470147be4059f04826aceb5595ecb Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 13 Nov 2018 13:29:29 +0200 Subject: [PATCH] Use fileType.minimumBytes --- src/plugins/uploader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/uploader.js b/src/plugins/uploader.js index 0dff113f..19528d8b 100644 --- a/src/plugins/uploader.js +++ b/src/plugins/uploader.js @@ -124,7 +124,7 @@ class Uploader { let type; try { - buffer = readChunk.sync(filePath, 0, 4100); + buffer = readChunk.sync(filePath, 0, fileType.minimumBytes); } catch (e) { if (e.code === "ENOENT") { // doesn't exist return;