mongosoft\file\UploadBehavior::afterUpload PHP 메소드

afterUpload() 보호된 메소드

The default implementation raises the [[EVENT_AFTER_UPLOAD]] event. You may override this method to do postprocessing after the file is uploaded. Make sure you call the parent implementation so that the event is raised properly.
protected afterUpload ( )
    protected function afterUpload()
    {
        $this->owner->trigger(self::EVENT_AFTER_UPLOAD);
    }

Usage Example

예제 #1
0
 /**
  * @inheritdoc
  */
 protected function afterUpload()
 {
     parent::afterUpload();
     if ($this->createThumbsOnSave == true) {
         $this->createThumbs();
     }
 }