开发者

GlassFish V3 File Upload Servlet, file access problem

I have more开发者_运维知识库 of a structure or permissions problem than an actual coding problem I am trying to upload a file in the most secure way possible without going down the route of inserting it into a database.

I am finding that when I try and store a file outside of the application on the server my application is being denied access to the directories.

I have no experience with GlassFish configuration and would welcome any solutions you can give.

Thanks in advance.


The solution was simple I was using the org.apache.commons.fileUpload package and specifying my own temporary directory by allowing Java to enquire of the system where to store temporary files the problem was removed.

Left here that this post may help others.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜