Hello,

I'd like to get some naming comments on a module I'm interested
in uploading to CPAN.

The working name I have now is "CGI::MediaDB".

Working with Data::FormValidator and CGI.pm, it makes it easy
to manage file uploads with the meta data stored in a SQL database
(Postgres and MySQL are supported), with the actual files stored
on the file system.

A single function will create any needed thumbnails, and write out 
all files to the database and file system.

There are also functions to remove files (from the filesystem and DB)
based on web-form input.

Finally, it create a hashref for a file, suitable for giving to 
a templating system for display and linking.

I've mostly used it with images so far, but arbitrary file formats are
supported.


I chose to use the CGI top-level namespace because it does rely on a
CGI.pm-compatible object to work. "MediaDB" seemed like a decent way 
to describe it provides functions relating to mananging a database of
files.

CGI::UploadDB perhaps is an even better match, since the files don't
have to be "media" files.  

My working documentation is here:
http://mark.stosberg.com/perl/mdb.html

I plan to also write a tutorial to clarify things even further.

        Mark

-- 
http://mark.stosberg.com/ 

Reply via email to