Save file to storage
protected _afterSave ( array $result ) : Mage_Core_Model_File_Uploader | ||
$result | array | |
Résultat | Mage_Core_Model_File_Uploader |
protected function _afterSave($result) { parent::_afterSave($result); if (!empty($result['path']) && !empty($result['file'])) { $imageProvider = CloudinaryImageProvider::fromConfiguration($this->_getConfigHelper()->buildConfiguration()); $imageProvider->upload(Image::fromPath($result['path'] . DIRECTORY_SEPARATOR . $result['file'])); $this->_trackSynchronisation($result['file']); } return $this; }