protected function uploadFileToCloudinary($file, $publicId)
    {
        $result = $this->uploader->upload(
            $file->getRealPath(),
            [
                'public_id' => $publicId,
            ]
        );

        return $result;
    }
protected function uploadFileToCloudinary($file, $publicId)
    {
        $result = $this->uploader->upload(
            $file->getRealPath(),
            [
                'public_id' => $publicId,
            ]
        );

        return $result;
    }
protected function uploadFileToCloudinary ( $ file , $ publicId ) { $ result = $ this -> uploader -> upload ( $ file -> getRealPath ( ) , [ 'public_id' => $ publicId , ] ) ; return $ result ; }
Upload a picture to Cloudinary.

@param SplFileInfo $file     The file to upload.
@param string      $publicId Path where to upload in Cloudinary.

@return array
Upload a picture to Cloudinary .