removed console log
This commit is contained in:
parent
93d23a3721
commit
fd4f745dc1
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
const logger = require('winston');
|
const logger = require('winston');
|
||||||
|
|
||||||
const validateFileTypeAndSize = (file) => {
|
const validateFileTypeAndSize = (file) => {
|
||||||
logger.debug('FILE:', file);
|
|
||||||
// check file type and size
|
// check file type and size
|
||||||
switch (file.type) {
|
switch (file.type) {
|
||||||
case 'image/jpeg':
|
case 'image/jpeg':
|
||||||
|
@ -26,9 +25,8 @@ 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, .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;
|
return file;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue