From f9913957e4340dec667e5532a4af00cf0cda4a42 Mon Sep 17 00:00:00 2001 From: Giang Manh Date: Tue, 30 Jun 2015 07:11:55 +0900 Subject: [PATCH] bugfix file types --- AttachmentController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AttachmentController.class.php b/AttachmentController.class.php index 6688bff..4f66b76 100644 --- a/AttachmentController.class.php +++ b/AttachmentController.class.php @@ -125,7 +125,7 @@ public function action_upload() // Set the allowed file types based on config. $allowedFileTypes = C("plugin.Attachments.allowedFileTypes"); if (!empty($allowedFileTypes)) - $uploader->allowedExtensions = $allowedFileTypes; + $uploader->allowedExtensions = explode(' ', $allowedFileTypes); // Set the max file size based on config. if ($size = C("plugin.Attachments.maxFileSize"))