-
Notifications
You must be signed in to change notification settings - Fork 286
Rackspace cloudfiles
You should checkout application/libraries/cloudfiles.php
for a list of available functions. You will also need to edit config/cloudfiles.php
in order to properly use the Cloudfiles library module.
$cname
is the name of the container you want to create. If something goes wrong, it will return false as its output.
$cname
is the container name you want to delete. If the container does not exist, it'll return true stating that the container does not exist.
$c
is the container name. This will constrain the container from being accessible from the world wide web. If the container is private, no files will be able to be accessed with generated URLs.
$c
is the container name you want to place the file into. $f
is the file name path (such as tmp/filename.png
) of the file you want upload. This will return false if the container does not exist or if it cannot upload or create the object.
$c
is the container name, $f
if the filename. This will delete the file and return true if the file does not exist.
$c
is the container name, $f
is the filename. $ssl
is a boolean that you can set if you want SSL secured links (this is optional and will default to true). This function will return a URL you can use to access the given filename from the world wide web. This will return false if no such file exists.
$c
is the container name. This will give an array list of the files in the container. All of them.
$this->load->library('cloudfiles');
$this->cloudfiles->create_container('containername');
$this->cloudfiles->create_object('containername', '/path/to/file');