Managing uploads through configuration
Clone or download
Pull request Compare This branch is 4 commits ahead, 2 commits behind mariuskubilius:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
extensions
tests
.gitignore
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md

README.md

File System plugin for the Lithium Framework

Installation

Checkout the code to your library directory:

cd libraries
git clone git@github.com:/mariuskubilius/li3_filesystem.git

Include the library in in your /app/config/bootstrap/libraries.php

Libraries::add('li3_filesystem');

Configuration

Local filesystem configurations would look something like:

use li3_filesystem\extensions\storage\FileSystem;

FileSystem::config(array(
    'default' => array(
        'adapter' => 'File',
    ),
));

Stream based configurations would look something like:

use li3_filesystem\storage\FileSystem;

FileSystem::config(array(
    'ftp' => array(
        'adapter' => 'Stream',
        'wrapper' => 'ftp',
        'path' => 'user:password@example.com/pub/'
    }
));