You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
305 B
JavaScript
11 lines
305 B
JavaScript
exports.isJPEG = mimeType =>
|
|
mimeType === 'image/jpeg';
|
|
|
|
exports.isVideo = mimeType =>
|
|
mimeType.startsWith('video/') && mimeType !== 'video/wmv';
|
|
|
|
exports.isImage = mimeType =>
|
|
mimeType.startsWith('image/') && mimeType !== 'image/tiff';
|
|
|
|
exports.isAudio = mimeType => mimeType.startsWith('audio/');
|