简体   繁体   中英

How to download zip file from tomcat server web app location

I am working on ios project. One of the module in that project download *.zip files and extract them into app memory. on the server side I installed tomcat server, and uploaded all *.zip files and some *.txt files to the context path.

But when I call the *.txt file's it's working fine (I am getting text on app and browser) but when I call *.zip's file I got 404 (the requested resource is not available). the url is correct but it's only working for .txt files and some extension files.

I think it's blocking .zip files for security reasons. But I need zip file need to downloaded.

如果.zip文件位于服务器webapps路径之外,则需要将其添加到上下文路径(和dir路径)中,然后重新加载服务器即可解决该问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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