But I suppose your uploaded files are somewhere in the "work" directory or 
something?? After restarting your app, files will still be lost, won't they? I 
am used to copy uploaded stuff to dirs I define, with the following flow 
function:

_in = value of the form.lookupWidget("upload").getValue()
_out = save it to

function blobcopy(_in, _out) {
  var resolver = 
cocoon.getComponent(Packages.org.apache.cocoon.environment.SourceResolver.ROLE);
  var source = null;
  var dest = null;
  
  try {
    source = resolver.resolveURI(_in);
  
    dest = resolver.resolveURI(_out );
    Packages.org.apache.excalibur.source.SourceUtil.copy(source, dest);
  } catch(e){
         print("exception "+e.printStackTrace());
  }
  finally {
    if (source != null) {
      resolver.release(source);
    }
    if (dest != null) {
      resolver.release(dest);
    }
    if (resolver != null) {
      cocoon.releaseComponent(resolver);
    }
  }
}

AS


> 
> 
> I found my answer in the source code : I use  
> part.setDisposeWithRequest(false) to make sure my part won't 
> get cleaned up.
> 
> Philippe
> 
> ________________________________________
> De : Philippe LAPLANCHE 
> Envoyé : vendredi 6 janvier 2006 23:16
> À : [email protected]
> Objet : permanent upload
> 
> Hi,
> 
> I'm trying to use cocoon to upload a file.
> My problem is that cocoon deletes the files after uploading them.
> In the logs I find this:
> http-8080-Processor25 DEBUG access - Deleting uploaded file(s)
> 
> I don't know how to prevent that. 
> 
> Is there an option to control this behaviour?
> 
> My problem is that I need to upload a csv file to insert data 
> into a database.
> I want to preview the data before actually inserting it in 
> the database. It lets the user checks that the csv file is ok.
> My upload flowscript is working nice, the data gets 
> displayed. When the user validates to actually insert data, I 
> can't update the database since the csv file has disappeared 
> from the server.
> 
> Any suggestion?
> 
> Philippe
> 
> 
> 
> --------------------------------------------------------------
> -------------------------
> Wanadoo vous informe que cet e-mail a ete controle par 
> l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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