Hi Steven ... I'm still testing your upload action, in order to adapt it to my requirements.
I have a problem with the upload directory. > immediately after your pipeline completes >Cocoon will delete the file from the upload-dir > if it is still there. Well, this doesn't happen into my application. When the server receives a file, it processes the file, and generates a result. After it, I need to delete the file, in order to prepare the sever for other receivements. Furthermore, I want to delete "incoming" directory, because the Upload Action doesn't work if "incoming" directory already exists. That is ... "incoming" directory only accepts one file. If the server wants to adquire another file, there is a problem, because upload action tries to create "incoming" directory again. ----- Original Message ----- From: "Steve Schwarz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 1:26 AM Subject: Re: Uploading files with Cocoon 2.1 (one more) > Josep, > > >Hi Steve .... I have achieved to upload a file with your action !!!! Today > >is a happy day !!! The problem was in the pipeline declaration.... > Great I hoped it was something simple. > > >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??? > Laziness. The example action I based my implementation on worked this way. > Since I only have one pipeline matcher that uses this action I wasn't > worried about maintenance. You might be able to access the web.xml setting; > but I didn't investigate how. > > >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? > ??? In 2.1.x the file should only exist in the upload-dir long enough for > you to process it or copy it somewhere else. So immediately after your > pipeline completes Cocoon will delete the file from the upload-dir if it is > still there. Are you trying to copy your file back into the upload-dir? Or > are you copying it to the same name in the destination directory? > > >Thanks a lot !!!! :-))) > A lot of really nice people have helped me on this list; it's the least I > could do. > Steve > > _________________________________________________________________ > online games and music with a high-speed Internet connection! Prices start > at less than $1 a day average. https://broadband.msn.com (Prices may vary > by service area.) > > > --------------------------------------------------------------------- > 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]
