Accept a file via HTTP POST and send to Rackspace Cloud Files
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
KLogger @ b6590e4
php-cloudfiles @ b5e5481

CloudFiles Poster

Take a file that's uploaded using a browser's file upload via HTTP POST and send it to your RackSpace Cloud CloudFiles account. This application was developed as a tool to catch audio recordings uploads from Tropo



Copy poster.php to a directory on your server. Copy the php-cloudfiles and KLogger directories to the same location as poster.php. To run the demo, also copy demo.jpg and demo.php to the same location.

Optionally set a default CloudFiles container by editing the $container_name variable in poster.php.


POST a file to poster.php using your RackSpace Cloud's username and API Access Key as your Basic auth username and password, respectively. Optionally include the following query string variables:

  • name - the name you would like to store the file as, if different than the name of the file you're uploading
  • container - the CloudFiles container to store this file in. Will override the default container set in the script.


Copy demo.jpg and demo.php to the same location on your web server as poster.php. Add your CloudFiles username and API key to the top of the file. Open demo.php in your browser, then check your CloudFiles account. You'll have a new container in it called Demo and a copy of demo.jpg inside it.

The image used in the demo is King Cloud from used under a Creative Commons license.