public function attachmentAction()
 {
     $this->_checkRegistered();
     $this->_checkFrontendEnabled();
     if (!($articleId = $this->getRequest()->getParam(AW_Kbase_Helper_Url::URL_PARAM_NAME_ARTICLE_ID))) {
         Mage::getSingleton('core/session')->addError($this->__('No article specified'));
         $this->redirectHome();
         return;
     }
     $fileName = AW_Kbase_Helper_Data::getAttachmentFilename($articleId);
     AW_Kbase_Helper_Data::downloadFile($fileName);
 }
 public function downloadAttachmentAction()
 {
     if (!($id = $this->getRequest()->getParam('id'))) {
         Mage::getSingleton('adminhtml/session')->addError($this->__('No article specified'));
         $this->redirectHome();
         return;
     }
     $fileName = AW_Kbase_Helper_Data::getAttachmentFilename($id);
     AW_Kbase_Helper_Data::downloadFile($fileName);
 }