Skip to content

Commit a55e11a

Browse files
committed
upload(): do not read file size of provided filename
might get size of different file and result in unexpected results
1 parent 02857a2 commit a55e11a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lib/CloudConvert.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ function guessNameAndSize(
6666
(source instanceof Blob ? source.size : undefined) ??
6767
(path !== undefined
6868
? statSync(path, { throwIfNoEntry: false })?.size
69-
: undefined) ??
70-
(fileName !== undefined
71-
? statSync(fileName, { throwIfNoEntry: false })?.size
7269
: undefined);
7370
if (size === undefined) {
7471
throw new Error(

0 commit comments

Comments
 (0)