The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache::FileManager - Apache file manager

SYNOPSIS

Install in mod_perl enabled apache conf file <Location /FileManager> SetHandler perl-script PerlHandler Apache::FileManager </Location>

Or call from your own mod_perl script use Apache::FileManager;

  #before the header has been sent
  my $obj = Apache::FileManager->new();

  #after header has been sent
  $obj->print();

DESCRIPTION

The Apache::FileManager module is a simple HTML file manager. It provides file manipulations such as cut, copy, paste, delete, rename, extract archive, create directory, and upload files. All of these can be enacted on one or more files at a time (except rename). This module requires the client to have Java-script, and cookies enabled.

SPECIAL NOTES

If you use the OO interface for the file manager, make sure you instantiate the object BEFORE the header is sent! If you do not do this, Apache::FileManager can not store past cut and copied files inside a cookie.

Make sure the web server has read, write, and execute access access to the directory you want to manage files in. Typically you are going to want to run the following commands before you begin.

chown -R nobody /web/xyz/htdocs chmod -R 755 /web/xyz/htdocs

The extract functionality only works with tarballs and zips. Is there demand for anything else?

BUGS

I am sure there are some bugs. All file operations refer to files using unix style filenames, so this probably won't work with windows. I did see a module that will abstract this for you so I might add windows operbility later.

TODO

It would be nice if you could choose a different base directory other then the document root in the constructor. I may do this sometime if I have a need to. If you want to contribute, send me your updates.

AUTHOR

Apache::FileManager was written by Philip Collins <pmc2@sr.unh.edu>.