marks12 / csn-file-manager
File manager for ZF2
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2025-01-28 03:42:22 UTC
README
Zend Framework 2 Module
What is CsnFileManager?
CsnCsnFileManager is a simple File Manager that lets users upload files. It makes it easy to download a file or include it in your html. The files are stored in a directory not directly accessible by Apache.
Installation
-
Installation via composer is supported, simply run:
php composer.phar require coolcsn/csn-file-manager:dev-master
-
Copy the sample file-manager configuration from
./vendor/coolcsn/csn-file-manager/config/file-manager.local.php.dist
to./config/autoload
renaming it to file-manager.local.php. Edit the file, replacing the directory path with one where you want to store the uploads, set the maximum file size in bytes - default is 200kb. -
Add 'CsnFileManager' to your application configuration in
config/application.config.php
. An example application configuration could look like the following:
'modules' => array(
'Application',
'CsnUser',
'CsnFileManager',
)
Note: You may need to enable the php_fileinfo
extension depending on your php version.
How can I upload my gorgeous profile picture?
Navigate to [hostname]/csn-file-manager. Enjoy :)
Dependencies
This Module requires that you have a working authentication and authorization modules (in order to control who can upload files and who has access to them). You can check coolcsn/CsnUser and coolcsn/CsnAuthorization.
Recommends
- coolcsn/CsnCmsApplication - An enhanced skeleton application;
- coolcsn/CsnUser - Authentication (login, registration) module.
- coolcsn/CsnAuthorization - Authorization module.
- coolcsn/CsnAclNavigation - Navigation module;
- coolcsn/CsnCms - CMS module;