I was using rackspace and while uploading files I wasn't able to create sub directories or container for thumbnail files. The reason i am not uploading is because i want to keep the files url as {someUrl}/{fileName} and for their thumbnails i want {someUrl}/thumbnails/{fileName}. So i did this
$ActualImage = file_get_contents($fileThumbPath);
$rackspace->storeObject('VAC', $fileName, $ActualImage,$this->getMataData($extension));
This works fine but when i do this
$thumbImage = file_get_contents($fileThumbPath);
$rackspace->storeObject('VAC/thumbnails/', $fileName, $thumbImage ,$this->getMataData($extension));
How can i upload to subdirectories
In Zend framework 1 I was doing this
require_once('Rackspace/Cloudfiles.php');
$cf = new Rackspace_Cloudfiles(user,pass);
$cf->putObject('VAC/thumbnails/' . $fileName, $thumbfileData);
and that works fine
Started a bounty because i really needed to implement this in zend framework 2 . I have two version of an application and in order to work them both they need to save the files on the same location. This nested file saving is really need guys...