From 5f486e3d5014e03befc0cdc16dbe278b5259b0c5 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Fri, 6 Jul 2018 17:41:17 -0700 Subject: [PATCH] fixed content type error message for accuracy --- server/controllers/api/claim/publish/validateFileTypeAndSize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/api/claim/publish/validateFileTypeAndSize.js b/server/controllers/api/claim/publish/validateFileTypeAndSize.js index 095698e7..7f9ddef4 100644 --- a/server/controllers/api/claim/publish/validateFileTypeAndSize.js +++ b/server/controllers/api/claim/publish/validateFileTypeAndSize.js @@ -25,7 +25,7 @@ const validateFileTypeAndSize = (file) => { break; default: logger.debug('publish > file validation > unrecognized file type'); - throw new Error('The ' + file.type + ' content type is not supported. Only, .jpg, .png, .gif, and .mp4 files are currently supported.'); + throw new Error('The ' + file.type + ' content type is not supported. Only, image/jpg, image/png, image/gif, and video/mp4 content types are currently supported.'); } return file; };