webtier@glassfish.java.net

Re: [webtier] where to store uploaded files

From: Lincoln Baxter, III <lincolnbaxter_at_gmail.com>
Date: Wed, 27 Oct 2010 21:53:00 -0400

You can store the location of the file on disk, with a unique file ID, in a
database that both applications can utilize.

On Wed, Oct 27, 2010 at 9:46 PM, <webtier_at_javadesktop.org> wrote:

> Hi,
>
> I have a application which has two WARs, one WAR accepts user uploads of
> files and then display back to the users. The other WAR is required to
> access these files.
>
> But if I put the uploaded files outside of the WAR context dir. it's hard
> to construct a URL for an uploaded file.
>
> So what I want to ask is, what's the usual practice to handle this case by
> most webapp developers?
>
> Thank you very much for help.
> [Message sent by forum member 'lihe65']
>
> http://forums.java.net/jive/thread.jspa?messageID=486394
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>


-- 
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"