Skip to content

Commit

Permalink
Update Upload.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aslubsky committed Nov 12, 2015
1 parent 3205acd commit c8be0f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Bazalt/Rest/Exception/Upload.php
Expand Up @@ -26,6 +26,15 @@ public function getAllowedExtensions()
return $this->_allowedExtensions;
}

public function toArray()
{
$arr = array();
$arr['error'] = $this->getMessage();
$arr['code'] = $this->getCode();
$arr['allowed_extensions'] = $this->_allowedExtensions;
return $arr;
}

/**
*
*
Expand Down

0 comments on commit c8be0f0

Please sign in to comment.