fixed content type error message for accuracy

This commit is contained in:
bill bittner 2018-07-06 17:41:17 -07:00
parent fd4f745dc1
commit 5f486e3d50

View file

@ -25,7 +25,7 @@ const validateFileTypeAndSize = (file) => {
break; break;
default: default:
logger.debug('publish > file validation > unrecognized file type'); 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; return file;
}; };