Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elkhiari opened this issue Sep 20, 2024 · 2 comments
Open

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

elkhiari opened this issue Sep 20, 2024 · 2 comments

Comments

@elkhiari
Copy link

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

@plrthink
Copy link
Collaborator

Could you attach the file? so I can debug with it.

@plrthink
Copy link
Collaborator

And you're operating on Android or iOS? and also the system version and the RN version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants