Skip to content

ailed to extract file Zip file size less than minimum expected z #318

@elkhiari

Description

@elkhiari

Describe the bug
[ react-native-zip-archive](console.error: error Error: Failed to extract file Zip file size less than minimum expected zip file size. Probably not a zip file or a corrupted zip file, js engine: hermes)

const unzipWithProgress = async (
zipFilePath: string,
unzipDestination: string,
dispatch: any
) => {
const progressSubscription = subscribe(({ progress }) => {
const progressPercentage = progress * 100;
console.log(Unzipping progress: ${progressPercentage}%);
dispatch(updateProgress(progressPercentage)); // Dispatch progress updates
});
try {
await unzip(zipFilePath, unzipDestination);
} catch (error) {
console.error("Unzipping failed", error);
throw error;
} finally {
progressSubscription.remove();
}
};
info size is more than 200mb

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions