src/Drauta/OvhObjectStorage/OvhClient.php
public function filePut($file, $filename = null)
	{	
	  $getPath = null;
	  $isString = is_string($file);
	  if($isString){
	    $getPath = $file;
	  }else{
	    $getPath = $file->getRealPath();		
	  }		
	  if($filename == null){
	    if($isString){
	      $explodePath = explode("/", $file);
	      $filename = $explodePath[count($explodePath)-1];
	    }else{
	      $filename = $file->getClientOriginalName();
	    }
	  }	
	  $this->getContainer()->uploadObject($filename, fopen($getPath, 'r'));				
	}
public function filePut($file, $filename = null)
	{	
	  $getPath = null;
	  $isString = is_string($file);
	  if($isString){
	    $getPath = $file;
	  }else{
	    $getPath = $file->getRealPath();		
	  }		
	  if($filename == null){
	    if($isString){
	      $explodePath = explode("/", $file);
	      $filename = $explodePath[count($explodePath)-1];
	    }else{
	      $filename = $file->getClientOriginalName();
	    }
	  }	
	  $this->getContainer()->uploadObject($filename, fopen($getPath, 'r'));				
	}
/*
$file puede ser un file de un formulario o un path a un archivo existente