Navigation Menu

Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



11 Commits

Repository files navigation

Cloud Files Gallery

A small PHP/mySQL application for uploading and displaying image galleries using Rackspace Cloud Files.

I built this simple gallery app as an exercise to become familiar with Rackspace's PHP Open Cloud API and decided to share it in the hopes it may help somebody. This is only meant to be an example; it's not meant to be put into production on your website unless you add some integrity checks and beef up security. I'm sharing this as-is, without warranty of any kind. Use at your own risk. The code is commented and should be easy to follow. Please don't ask for help with this, I'm just way too busy to offer any meaningful support. Thanks. :)

What It Does

  • Creates photo galleries using Rackspace Cloud Files containers and a mySQL database
  • Resizes and uploads images to Cloud Files containers
  • Recursively deletes image galleries and containers
  • Creates private and public CDN containers with temporary URLs; perfect for membership sites and digital downloads
  • Uses Bootstrap 3.3, jQuery and DropZone (all via CDN)


This also uses ezSQL for mySQL and ImageMagick for image uploads and manipulation, both of which can be easily swapped out for your own. If you're not using ImageMagick, update assets/php/upload.php with your own upload code.


Update: I created this companion blog post, which is more detailed than the instructions below.

  1. Download the .zip file
  2. Create a new mySQL database named open-cloud and import the tables in open-cloud.sql
  3. Install the php-opencloud library into assets/plugins/
  4. Download ezSQL into assets/plugins/ (or use your own)
  5. Open assets/config.php and edit accordingly
  6. Visit index.php in your browser to start creating galleries!

If you're using MAMP Pro, check out how to easily install ImageMagick with MAMP Pro 3.


A small PHP/mySQL application for uploading and displaying image galleries using Rackspace Cloud Files






No releases published


No packages published