0.2.2experimentalCloud Storage Field
This field allows you to store your uploads on the cloud using Rackspace's Cloud Files product.
Clone URLhttps://github.com/brendo/cloudstoragefield.git
Add as a submodulegit submodule add https://github.com/brendo/cloudstoragefield.git extensions/cloudstoragefield --recursive
Compatibility
2.x.x | 2.1.x | 2.2.x | 2.3.x | 2.4.x | 2.5.x | 2.6.x | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.7.4 | 2.7.5 | 2.7.6 | 2.7.7 | 2.7.8 | 2.7.9 | 2.7.10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No | No | No | 0.2.2 | No | No | No | No | No | No | No | No | No | No | No | No | No | No. Soon? |
Readme
Field: Cloud Storage
This extension allows you store your uploads in the "Cloud" using Rackspace's Cloud Files product. While the extension is currently tied to Rackspace, it leverages their PHP OpenCloud SDK which theoretically means it can work on other providers.
Installation
Upload the
/cloudstoragefield
folder to your Symphony/extensions
folderIf you are using Git, ensure that you checkout the submodules, running
git submodule update --init
inside the/cloudstoragefield
folder should do the trickEnable the extension by selecting the "Field: Cloud Storage Field" on the Symphony extensions page, choose Enable from the With Selected menu and then click Apply.
Go to your Symphony preferences page to add your Rackspace credentials and select your default container region.
You can now add the "Cloud Storage Field" field to your sections and choosing the container to upload the files into.
Gotchas
- Make sure that your container is Enabled for Public Access (CDN), private containers are not supported by this extension
- You will probably always need to create your containers inside the Rackspace Control Panel. It's just easier :)
- Changing a field's container will not copy existing entries data to the new container
TODO
- Make faster!
- Better exception handling with Rackspace and reporting this errors back to users
- Allow you to define file TTL on the CDN
- Better abstraction (all hardcoded to use
Providers_Rackspace
at the moment) - Allow other cloud providers, such as AWS S3 to be used as part of this extension. Developers can then select which provider they'd like a field to register to allowing your site to use both Rackspace and AWS S3
Credits
Big thumbs up to Will Nielsen, Andrew Shooner, Brian Zerangue, Michael Eichelsdoerfer and Scott Tesoriere for their work in the S3 Upload Field and the Unique Upload Field. It provided a pretty good base for knowing how and when to connect to Rackspace.
Version history
Requires Symphony 2.3
General changes
- Improved README
- Better expection handling for missing files
Rackspace Cloud Files
- Add London region to available container locations
Requires Symphony 2.3
General changes
- Handle when we have no meta data about an asset
Rackspace Cloud Files
- Set the default region to be DFW
Requires Symphony 2.3
General changes
- Tracking latest PHP-Opencloud release
- Restore storing metadata about assets like the normal upload field
Rackspace Cloud Files
- Store SSL, Streaming and HTTP versions of assets
- Set the Rackspace timezone to mirror the Symphony timezone
- Allow you to choose containers from different regions instead of being locked to Dallas
Requires Symphony 2.3
- Initial release