diff --git a/code/FileAttachmentField.php b/code/FileAttachmentField.php index 602a282..ae2c40c 100644 --- a/code/FileAttachmentField.php +++ b/code/FileAttachmentField.php @@ -510,7 +510,7 @@ public function imagesOnly() { */ public function setAcceptedMimeTypes($types = array ()) { if(is_array($types)) { - $types = explode(',', $types); + $types = implode(',', $types); } $this->settings['acceptedMimeTypes'] = $types;