You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wojtek Stańczuk <W....@tele.pw.edu.pl> on 2007/09/07 09:34:11 UTC
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: upload and download of images with Tomcat
Posted by PTS <pa...@gmail.com>.
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" <W....@tele.pw.edu.pl>
To: <us...@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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org