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.
精彩评论