You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Holger Stephan <ja...@frogleg.net> on 2004/09/28 08:35:57 UTC

Re: Upload

Use IUploadFile.write(File file) to save the file to the location of
your choice.

- Holger

On Tue, 2004-09-28 at 08:30, abangkis wrote:
> hello i'm trying to upload an image using tapestry upload component.
> I've succeded doing that, but the file is saved in the tomcat/bin directory.
> How can i change the directory for the upload directory to the context path.
> or maybe to other directory such as the user home directory.
> 
> TIA
> 
> Abangkis



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Upload

Posted by abangkis <ab...@sadikungroup.com>.
thanks..  the problem  is solved

Cyril Godefroy wrote:

> There's code to cut/past/think on
> http://jakarta.apache.org/tapestry/doc/ComponentReference/Upload.html
>
> Look at this:
> fos = new FileOutputStream(new File(file.getFileName()));
> in the blank of the eyes, and you'll find how to save your file 
> anywhere (if you have permissions)
>
> eCOMPOSITE
> J2EE & Multimedia
> cyril@ecomposite.fr
> Tel 06 63 16 45 41
> On Sep 28, 2004, at 8:35 AM, Holger Stephan wrote:
>
>     Use IUploadFile.write(File file) to save the file to the location of
>     your choice.
>
>     - Holger
>
>     On Tue, 2004-09-28 at 08:30, abangkis wrote:
>
>         hello i'm trying to upload an image using tapestry upload
>         component.
>         I've succeded doing that, but the file is saved in the
>         tomcat/bin directory.
>         How can i change the directory for the upload directory to the
>         context path.
>         or maybe to other directory such as the user home directory.
>
>         TIA
>
>         Abangkis
>
>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>     For additional commands, e-mail:
>     tapestry-user-help@jakarta.apache.org
>

Re: Upload

Posted by Cyril Godefroy <cy...@ecomposite.fr>.
There's code to cut/past/think on
http://jakarta.apache.org/tapestry/doc/ComponentReference/Upload.html

Look at this:
fos = new FileOutputStream(new  File(file.getFileName()));
in the blank of the eyes, and you'll find how to save your file 
anywhere (if you have permissions)

eCOMPOSITE
J2EE & Multimedia
cyril@ecomposite.fr
Tel 06 63 16 45 41
On Sep 28, 2004, at 8:35 AM, Holger Stephan wrote:

> Use IUploadFile.write(File file) to save the file to the location of
> your choice.
>
> - Holger
>
> On Tue, 2004-09-28 at 08:30, abangkis wrote:
>> hello i'm trying to upload an image using tapestry upload component.
>> I've succeded doing that, but the file is saved in the tomcat/bin 
>> directory.
>> How can i change the directory for the upload directory to the 
>> context path.
>> or maybe to other directory such as the user home directory.
>>
>> TIA
>>
>> Abangkis
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>