Exemple #1
0
 public function createFromOri($type, $fileName)
 {
     $uri = "{$type}/{$fileName}";
     if (($info = $this->getObjectInfo(S3Voota::getBucketOri(), $uri)) !== false) {
         $fileOnDisk = "/tmp/{$fileName}";
         if (($object = S3::getObject(S3Voota::getBucketOri(), $uri, "{$fileOnDisk}")) !== false) {
             $this->createFromFile($type, $fileOnDisk);
             unlink("{$fileOnDisk}");
         }
     }
 }