[英]how to access files on local file system from deployed web app?
I have a web app deployed on Tomcat on Windows 7. I have various files on the PC, local file system, that I want to access from my web app. 我在Windows 7的Tomcat上部署了一个Web应用程序。我想从Web应用程序访问PC上的各种文件(本地文件系统)。 How can I do this or is this possible?
我该怎么办或有可能吗?
Ok, looks like I found the solution. 好的,看起来我找到了解决方案。
Can just use the File() object with absolute paths and that does the trick. 可以将File()对象与绝对路径一起使用就可以了。
I thought there would be some special requirements for web apps but it looks like there isn't 我以为Web应用程序会有一些特殊要求,但似乎没有
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.