Gary Lawrence Murphy wrote:

> 
> 
> In the Turbine properties, the UploadService has a repository value to
> be set, but the docs are unclear; is this relative to the webapp
> directory like most of the other property paths or must this one be
> spelled out as an absolute path?
> 
>    # The directory where files will be temporarily stored.
>    services.UploadService.repository=/WEB-INF/tmp
> 
> On using FileInfo.write, this setting gave me an error saying the temp
> file could not be read.
> 

It seems that the paths are relative to the current directory of whatever
servlet engine you a re running. I've just yesterday written a File Upload
portlet, and there I first did a FileItem.write() with no path. The file ended
up in my *Start Menu* under Programs=>Tomcat.... :-(. Adding a path-parameter to
the portlet and setting that to an absolute path worked fine. I assume this will
be true also for the UploadService.repository.

Harald

PS: If anybody needs a File Upload portlet, I can post it to the list when I
feel it is OK. I also have some ideas on making an "Admin version" of it, to be
able to upload new .xregs, new templates and also even new classes to be able to
configure and andd functionality to the portal on the fly...

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to