简体   繁体   English

JAVA:一次下载多个文件?

[英]JAVA: multiple files download at the same time?

Is there any methods for downloading multiple files at the same time? 有什么方法可以同时下载多个文件? That is, after select multiple files, click the download button, and choose the destination directory, the files selected will be downloaded at the same time. 也就是说,在选择多个文件之后,单击下载按钮,然后选择目标目录,所选文件将同时下载。 i googled it and not find any solutions, can anybody know? 我用谷歌搜索,没有找到任何解决方案,有人知道吗? im using struts1 and spring2. 即时通讯使用struts1和spring2。

This is not part of the normal file download model supported by web browsers. 这不是Web浏览器支持的普通文件下载模型的一部分。 You might be able to do this with some client-side Javascript. 您也许可以使用某些客户端Javascript来做到这一点。 However, I suspect it is not possible, since Javascript driven upload of multiple files would probably entail breaking Javascript's security sandbox. 但是,我怀疑这是不可能的,因为Javascript驱动的多个文件上传可能会破坏Javascript的安全沙箱。

Don't think so. 不要这样 You can download a zip though. 不过,您可以下载一个zip。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM