上传前请先上传压缩文件

问题描述

我正在尝试在使用 plupload 上传之前压缩文件

Plupload.bind('FilesAdded',(up,files) => {
   // 1. Check file
   // 2. Access file content here (Need input how we can access it? or pass file object to JS zip)
   // 3. Zip the file using // using JS Zip may be,this need blob,or array or content
   // 4. Add Zipped content in queue,with new file name and remove current file from the queue.
}

我正在寻求有关第 2 点和第 3 点的帮助。我需要在何处提取文件内容并将 blob 或文件对象传递给 JS Zip,以便它可以正确压缩。

感谢您的帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)