User file uploads

View: New views
2 Messages — Rating Filter:   Alert me  

User file uploads

by Peter Flynn-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a requirement for some of my users to upload documents to a
Cocoon server. The files need to be managed by Apache and Tomcat
afterwards, so using FTP/sftp won't work because those files will be
owned by the user's userid, and I'd prefer not to start messing with the
groups.

There are a gazillion upload scripts in PHP, Java, Flash, Perl, etc, but
before I reinvent any wheels, does anyone know of an upload facility
written for a Cocoon server?

///Peter

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


Re: User file uploads

by Dominic Mitchell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 5, 2009 at 2:36 PM, Peter Flynn <pflynn@...> wrote:
I have a requirement for some of my users to upload documents to a Cocoon server. The files need to be managed by Apache and Tomcat afterwards, so using FTP/sftp won't work because those files will be owned by the user's userid, and I'd prefer not to start messing with the groups.

There are a gazillion upload scripts in PHP, Java, Flash, Perl, etc, but before I reinvent any wheels, does anyone know of an upload facility written for a Cocoon server?

Cocoon does have upload handling facilities.  There are a couple, but last time I needed to manage uploads, I used the upload://formField source, which seemed to work well.  I believe that there's an example if you check out the source and build the sample webapp.  Look in:


-Dom