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