fixed content type error message for accuracy
This commit is contained in:
parent
fd4f745dc1
commit
5f486e3d50
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue