Hi Steve .... I have achieved to upload a file with your action !!!! Today is a happy day !!! The problem was in the pipeline declaration....
But I have some questions to you: 1. In the pipeline, you specifies the "upload-dir" as "incoming". It's ok ... my files are saved into /cocoon/incoming/ directory. But ... what about upload-directory at web.xml ??? You specify two directories: one at the pipeline, and the other, at web.xml ... what's the difference??? 2. When I try to upload a second file to "incoming" directory, it doesn't work. It seems that only accept one file into this directory. I have turned "overwrite-uploads" to "allow" at web.xml . Do you know what I have to do in order to save a lot of files, with the same name (Cocoon renames "x_name" if "overwrite-uploads" is turned to "rename"), into the same directory? Thanks a lot !!!! :-))) ----- Original Message ----- From: "Steve Schwarz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 19, 2003 12:20 AM Subject: Re: Uploading files with Cocoon 2.1 (one more) > Josep, > > >Steven Schwarz posted his own upload action, but I can't run it. > What error / failure condition are you getting? Please supply the logfile > showing the action output. > > >It contains a "request" action, that I don't need > It *has* to contain a request...that is where cocoon puts the > directory/filename of the temporary location where it put the uploaded file. > The action copies or moves the file from the temporary location to the final > location you specify. > > >and I think it is too complex. > Beauty is in the eye of the beholder :^) It's only ~120 lines long and the > vast majority of that is debug logging. I put all the logging to make it > easy to debug when others use it. > > This action has to handle three scenarios: > 1. The input is a Part > 2. The input is a PartOnDisk (the most common case) > 3. The input is a PartOnDisk and it is not on the same filesystem as the > destination > > Please run this action along with the pipelines I provided with debug turned > on and submit the logs. > I can only help if you can provide specific problems. > Regards > Steve > > _________________________________________________________________ > Has one of the new viruses infected your computer? Find out with a FREE > online computer virus scan from McAfee. Take the FreeScan now! > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > --------------------------------------------------------------------- > 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]
