From 8c21217897496d63b5a7aaec2850901aba136776 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 31 Mar 2021 15:32:18 -0400 Subject: [PATCH] feat: update allowMimeTypes to match latest NodeBB --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 70b6a51..4181733 100644 --- a/index.js +++ b/index.js @@ -219,7 +219,7 @@ plugin.uploadImage = function (data, callback) { } var type = image.url ? "url" : "file"; - var allowedMimeTypes = ['image/png', 'image/jpeg', 'image/gif']; + var allowedMimeTypes = ['image/png', 'image/jpeg', 'image/gif', 'image/pjpeg', 'image/jpg', 'image/svg+xml']; if (type === "file") { if (!image.path) {