Use fileType.minimumBytes
This commit is contained in:
parent
d2b2cf308c
commit
dd61e6e09a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user