andrelohmann / silverstripe-extended-file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

silverstripe extended file

Maintainers

  • Andre Lohmann (Nickname: andrelohmann)

Requirements

Silverstripe 3.2.x

Introduction

This module extends the File class with a load method, that allows to create file objects from path and a CloudURL Method, that allows to use a thirdparty CDN Domain for all Files.

Usage

// Load from File
$File = new File();
$File->load(FILE_PATH, TARGET_PATH);

// use CDN URL
Config::inst()->update('ExtendedFile', 'cloud_url', YOUR_CDN_DOMAIN);
echo $File->getCloudURL();

About

License:MIT License


Languages

Language:PHP 95.2%Language:ApacheConf 4.8%