Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data
有的时候会报这种错,这个代表的是传输文件过大,禁止传入,解决方式就是在方法体的最上面的部分,加上一行代码
ZipSecureFile.setMinInflateRatio(-1.0d);
就解决了
当遇到Zipbombdetected错误时,意味着文件解压后大小超过压缩时的比例限制。为了解决这个问题,可以在代码中使用ZipSecureFile.setMinInflateRatio(-1.0d)来禁用这个检查,允许大文件传输。
Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data
有的时候会报这种错,这个代表的是传输文件过大,禁止传入,解决方式就是在方法体的最上面的部分,加上一行代码
ZipSecureFile.setMinInflateRatio(-1.0d);
就解决了
1243
170
2万+
515

被折叠的 条评论
为什么被折叠?