public function onRemoveAttachment()
    {
        $fileModel = $this->getRelationModel();
        if (($fileId = post('file_id')) && ($file = $fileModel::find($fileId))) {
            $this->getRelationObject()->remove($file, $this->sessionKey);
        }
    }
public function onRemoveAttachment()
    {
        $fileModel = $this->getRelationModel();
        if (($fileId = post('file_id')) && ($file = $fileModel::find($fileId))) {
            $this->getRelationObject()->remove($file, $this->sessionKey);
        }
    }
public function onRemoveAttachment ( ) { $ fileModel = $ this -> getRelationModel ( ) ; if ( ( $ fileId = post ( 'file_id' ) ) && ( $ file = $ fileModel :: find ( $ fileId ) ) ) { $ this -> getRelationObject ( ) -> remove ( $ file , $ this -> sessionKey ) ; } }
Removes a file attachment.
Removes a file attachment .