Skip to content

Commit 8afd57b

Browse files
committed
chore: inc byte to read
1 parent 46342d6 commit 8afd57b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/fileDownload/FileUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function validateImageForCorruption(file: FileObject): Promise<{width: number; h
274274

275275
/** Verify file format based on the magic bytes of the file - some formats might be identified by multiple signatures */
276276
function verifyFileFormat({fileUri, formatSignatures}: {fileUri: string; formatSignatures: readonly string[]}) {
277-
const BYTES_TO_READ = 16;
277+
const BYTES_TO_READ = 1028;
278278

279279
const cleanUri = fileUri.replace('file://', '');
280280

0 commit comments

Comments
 (0)