public function upload($file, $options = array())
{
$options['return_error'] = false;
$ret = \Cloudinary\Uploader::upload($file, $options);
$preloaded = new \Cloudinary\PreloadedFile(\Cloudinary::signed_preloaded_image($ret));
if ($this->verifyUpload && !$preloaded . is_valid()) {
throw new \Exception("Error! Couldn't verify cloudinary response!");
}
$this->_identifier = $preloaded->extended_identifier();
}