CiiRackspaceUploader Class
This class enables CiiMS to upload files to Rackspace Cloud Files, or any OpenStack file store, (*1)
Installation
This class should be installed with composer. After installing/uploading CiiMS, run this class, (*2)
# composer require ciims-plugins/rackspaceuploader dev-master # DEV
composer require ciims-plugins/rackspaceuploader 1.0.0 # Versioned
How to Use
To use this class, you need to make a configuration change to your protected/config/params.php
file., (*3)
<?php return array(
[...]
'ciims_plugins' => array(
'upload' => array(
'class' => 'CiiOpenstackUploader',
'options' => array(
'useOpenstack' => false, // Set to true to use a generic opensatck container
'container' => '', // The container name
'username' => '', // Your Openstack username
'API_KEY' => '', // Your Openstack API key
'region' => '', // The upload region
'identity' => '', // Only applies when using a non Rackspace container
)
)
)
[...]
);
Options
The following options are available for this class:, (*4)
__useOpenstack__ (optional), (*5)
By default this plugin will attempt to connect to Racksapce Cloud files. If you want to use a generic openstack container, set this value to true, (*6)
__container__ (required), (*7)
The container name, (*8)
__username__ (required), (*9)
The username to access the container, (*10)
__API_KEY__ (required), (*11)
Your container API key, (*12)
__region__ (required), (*13)
The region you want to connect to, (*14)
__identity__ (optional), (*15)
If useOpenstack is set to true, you must specify the identity URL. Al;ternatively if you're connecting to a non US Rackspace Cloud files endpoint, you can specify your identity provider here, (*16)