Skip to content

Commit

Permalink
Merge pull request #55 from sanderha/maxfilenumber-dropzone-api
Browse files Browse the repository at this point in the history
allow to set MaxFiles property on dropzone
  • Loading branch information
Aaron Carlino authored Sep 8, 2016
2 parents 801d140 + 0d07dac commit bb9906f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions code/FileAttachmentField.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,17 @@ public function setMaxFilesize($num) {
return $this;
}

/**
* Maximum number of files allowed to be attached
* @param int $num
* @return $this
*/
public function setMaxFiles($num){
$this->settings['maxFiles'] = $num;

return $this;
}

/**
* Sets the name of the upload parameter, e.g. "Files"
* @param string $name
Expand Down

0 comments on commit bb9906f

Please sign in to comment.