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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to