Use fileType.minimumBytes

This commit is contained in:
Pavel Djundik 2018-11-13 13:29:29 +02:00
parent d2b2cf308c
commit dd61e6e09a

View File

@ -124,7 +124,7 @@ class Uploader {
let type; let type;
try { try {
buffer = readChunk.sync(filePath, 0, 4100); buffer = readChunk.sync(filePath, 0, fileType.minimumBytes);
} catch (e) { } catch (e) {
if (e.code === "ENOENT") { // doesn't exist if (e.code === "ENOENT") { // doesn't exist
return; return;