From fd4f745dc15755802d5798118bcd83a894e2f8a3 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Fri, 6 Jul 2018 17:39:07 -0700 Subject: [PATCH] removed console log --- .../controllers/api/claim/publish/validateFileTypeAndSize.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/controllers/api/claim/publish/validateFileTypeAndSize.js b/server/controllers/api/claim/publish/validateFileTypeAndSize.js index 1c786380..095698e7 100644 --- a/server/controllers/api/claim/publish/validateFileTypeAndSize.js +++ b/server/controllers/api/claim/publish/validateFileTypeAndSize.js @@ -1,7 +1,6 @@ const logger = require('winston'); const validateFileTypeAndSize = (file) => { - logger.debug('FILE:', file); // check file type and size switch (file.type) { case 'image/jpeg': @@ -26,9 +25,8 @@ 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, .jpeg, .png, .gif, and .mp4 files are currently supported.'); + throw new Error('The ' + file.type + ' content type is not supported. Only, .jpg, .png, .gif, and .mp4 files are currently supported.'); } - // check file name return file; };