cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <g...@tuffmail.com>
Subject Re: upload widget
Date Mon, 17 Mar 2008 14:06:21 GMT
Peter Sparkes pisze:
> Thanks Grzegorz,
> 
> Unfortunately I can't get it to work, code is:
> 
> function upload() {
>      var form = new Form("forms/upload_model.xml");
>    var k = form.showForm("upload-display-pipeline.jx");
> 
>    k.invalidate();
> 
>    var widget = form.getChild("upload");
>    var uploadedContent = handleUpload(form);
>    var part  = widget.getValue();
>    part.copyToFile("new.pdf") ;
> .......................................
> 
> 
> The pdf file is uploaded, but deleted at the end of the request. However 
> it is not copied to new.pdf
> 
> Please, what am I doing wrong ?

What handleUpload() method does? Have you checked log files? Are you sure that new.pdf does
not 
exist? Have you checked work-directory of servlet container?

Not sure what's the exact problem so just wild guessing here.

-- 
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message