Skip to content

Commit

Permalink
Support custom action target
Browse files Browse the repository at this point in the history
  • Loading branch information
anqqa committed Sep 17, 2012
1 parent b176865 commit 5da678f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion classes/view/generic/upload.php
Expand Up @@ -9,6 +9,11 @@
*/
class View_Generic_Upload extends View_Article {

/**
* @var string URL for action target
*/
public $action;

/**
* @var string URL for cancel action
*/
Expand All @@ -34,7 +39,7 @@ public function content() {
$cancel_attributes = null;
}

echo Form::open(null, array('enctype' => 'multipart/form-data'));
echo Form::open($this->action, array('enctype' => 'multipart/form-data'));

?>

Expand Down

0 comments on commit 5da678f

Please sign in to comment.