CGI::FileManager
I am looking for a module that can be used as part of a web based application which requires management of a (partial) file system. If there is no such module I wonder if it would be interesting to add to CPAN ? In our current state operations required are - upload new file (with a customised hook to validate it before [1]) - download file - rename - delete - merge two files (in a customised way so that will probably require some hook or sub classing the module. [1]) - edit file (in a customised way so this requires a hook too [1]) [1] We are dealing with XML files so we'll have to edit those in some way that makes it simple for the user. I saw Apache::FileManager but that is mod_perl dependent and this application should not be. For uploading a file I could use CGI::Upload. So my questions are: - Is there such a module that someone could recommend ? - If there is no such module would a generic FileManager module using CGI be interesting on CPAN ? - What name ? CGI::FileManager ? - What else should such a module include ? Gabor
Re: CGI::FileManager
On Fri, Apr 30, 2004 at 04:47:49PM -0200, Gabor Szabo wrote: I am looking for a module that can be used as part of a web based application which requires management of a (partial) file system. If there is no such module I wonder if it would be interesting to add to CPAN ? In our current state operations required are - upload new file (with a customised hook to validate it before [1]) - download file - rename - delete - merge two files (in a customised way so that will probably require some hook or sub classing the module. [1]) - edit file (in a customised way so this requires a hook too [1]) [1] We are dealing with XML files so we'll have to edit those in some way that makes it simple for the user. I saw Apache::FileManager but that is mod_perl dependent and this application should not be. For uploading a file I could use CGI::Upload. So my questions are: - Is there such a module that someone could recommend ? - If there is no such module would a generic FileManager module using CGI be interesting on CPAN ? - What name ? CGI::FileManager ? - What else should such a module include ? Gabor Though it's somewhat of a distant memory to me now, I actually wrote something like this a few years ago. I vaguely remember looking at Apache::FileManager and finding it illsuited for my requirements, so I wrote something from scratch that was designed to integrate into an Apache::ASP framework. FWIW, my system included versioning with RCS, which I thought was pretty k3wl. For one existing example of a type of browser-based file manager, you might look at Lincoln Stein's Apache::MP3. I know of no others to recommend you explore. If you can create something generic, reusable and extensible, I would by +1 for having it on CPAN. CGI::FileManager is a fine name, but sounds very Windows 3.1 to me. How about CGI::FileBrowser or CGI::FileFinder? I will say from experience that this is a pretty big undertaking, even more so if your hope is to release something generic to CPAN. But don't let that stop you from trying! ky pgp0.pgp Description: PGP signature
Re: CGI::Uploader (was: CGI::FileManager)
On Fri, Apr 30, 2004 at 04:47:49PM -0200, Gabor Szabo wrote: I am looking for a module that can be used as part of a web based application which requires management of a (partial) file system. If there is no such module I wonder if it would be interesting to add to CPAN ? So my questions are: - Is there such a module that someone could recommend ? I'm now polishing a module which manages file uploads: http://search.cpan.org/dist/CGI-Uploader/ I think I want to make some slight tweaks to the API, but it's about ready for 1.0. It's built around my own common usage: Uploading images and storing meta data in a database. However, it works fine for non images as well. It doesn't meet all of your requirements, but may be useful as a component. The distribution includes a Cookbook with walk-through examples, as well as a complete (very simple) application. While I store the meta data in a database, I have some interest in supporting other storage schemes as well. The API is only lightly tied to need a DB now, but should be able to be un-coupled fairly easily. BTW, I looked at CGI::Upload too and don't currently recommend it. Check out the bug reports currently filed against it. Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark StosbergPrincipal Developer [EMAIL PROTECTED] Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . .