验证客户端的ZIP文件

时间:2016-10-17 11:51:44

标签: javascript zip

是否有一种简单,可靠的方式来验证zip文件内容?我知道这可以通过JSZiphtml { height: 100%; box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } body { position: relative; margin: 0; padding-bottom: 6rem; min-height: 100%; font-family: "Helvetica Neue", Arial, sans-serif; } .demo { margin: 0 auto; padding-top: 64px; max-width: 640px; width: 94%; } .demo h1 { margin-top: 0; } .footer { position: absolute; right: 0; bottom: 0; left: 0; padding: 1rem; background-color: #efefef; text-align: center; }来实现。但我不想创建或提取上传文件。另外,我想在不绝对需要时避免js库中的开销。

我只想打开并验证文件类型,文件大小的zip内容,如果可能的话还要测试图像是图像还是假货。不知怎的,我可以用php来评估服务器端的zip文件。

欢迎提供纯JS解决方案的提示

0 个答案:

没有答案