It defaults but I think he's wondering how he can set the dir programatically.
> Date: Wed, 3 Jun 2009 15:35:33 -0500 > Subject: Re: About the "struts.multipart.saveDir" for file upload > From: burtonrho...@gmail.com > To: user@struts.apache.org > > I wasn't aware that it was required. If you don't specify doesn't it > default to the 'work' directory? > > On 6/3/09, Qunhuan Mei <q...@qm18.wanadoo.co.uk> wrote: > > > > Hi, > > > > When implementing file upload, it is required to specify an absolute > > directory in struts.xml such as following: > > > > <constant name="struts.multipart.saveDir" value="C:/fileUploadTempDir" > > /> > > > > But this might be difficult to achieve, say when the project war is deployed > > in a external shared server and we do not have much idea about the directory > > structure of the target server machine. > > > > I was wondering if there is any recommended way to handle this issue. > > > > Ideally I would like to specify the directory in java code where I can > > detect the current working directory and specify the saveDir accordingly. Is > > this possible? > > > > Many thanks in advance, > > > > Qunhuan > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > -- > Sent from my mobile device > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ Windows Liveā¢: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009