I think it may be your choice of location that is causing you problems. Also would you not loose that content if you undeployed your app (depending on how it is deployed)?

I do uploads and display the images without issue in my app. But my directory is outside the web app structure. WARNING this makes the app non portable as it uses a hard coded path to the files.

If my memory serves me well, Tomcat deploys the app and then runs from a work directory. If the image files are in the app directory then the running app would not see them because it is running from the work directory and any path is referenced from it.

I think.

Someone tell me if I am wrong and I will crawl back under my rock.

Doug

----- Original Message ----- From: "Wojtek StaƄczuk" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Friday, September 07, 2007 3:34 AM
Subject: upload and download of images with Tomcat


Hello,
I try to upload images for futher download (as in a image
gallery) to a folder under web application dir. Everything goes fine except one thing: the uploaded images are not seen in the application till next deployment
of the application (Tomcat does not see the images).
Is it possible to make Tomcat see dynamically added
static content? I know that one of the solution is using web server for serving static resources, but I would
like to find a solution in Tomcat.

 Best regards,
 Wojtek Stanczuk



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to