/** * Retrieves the file from upload folder. * * OPTIONAL request parameters: * <pre> * - integer <b>id</b> Id of the current item. * - string <b>field</b> Name of the field in the module. * - integer <b>order</b> Position of the file (Can be many uploaded files in the same field). * </pre> * * @return void */ public function fileDownloadAction() { $hash = (int) $this->getRequest()->getParam('hash', null); list($model, $field, $itemId) = $this->_getFileParameters(); Default_Helpers_Upload::downloadFile($model, $field, $itemId, $hash); }