Dave Neil
2003-05-06 14:32:17 UTC
I am trying to determine the best location for a directory to contain
uploaded images.
Should it be to a subdirectory within the webapp performing the upload or
should it go to a complete separate directory elsewhere on the server?
Uploading the images into a directory under the deployment directory makes
undeployment more difficult (removing the core of the web-app while leaving
the uploaded images) and also appears to make it impossible to deploy as a
war file.
It seems logical to me that uploaded files should go to a separate directory
on the server, but then
I have the problem that I want to display the uploaded images from within
the web-application. As I understand it, tomcat security prevents a
web-application from accessing files outside the directory in which it has
been deployed.
Has anyone got any experience in this area?
Thanks,
Dave.
uploaded images.
Should it be to a subdirectory within the webapp performing the upload or
should it go to a complete separate directory elsewhere on the server?
Uploading the images into a directory under the deployment directory makes
undeployment more difficult (removing the core of the web-app while leaving
the uploaded images) and also appears to make it impossible to deploy as a
war file.
It seems logical to me that uploaded files should go to a separate directory
on the server, but then
I have the problem that I want to display the uploaded images from within
the web-application. As I understand it, tomcat security prevents a
web-application from accessing files outside the directory in which it has
been deployed.
Has anyone got any experience in this area?
Thanks,
Dave.