diff --git a/src/utils/image.js b/src/utils/image.js index 30aed2c..2f8074b 100644 --- a/src/utils/image.js +++ b/src/utils/image.js @@ -114,6 +114,9 @@ export const isDocumentExt = (url) => { || url.endsWith('.xlsx') || url.endsWith('.ppt') || url.endsWith('.pptx') + || url.endsWith('.wps') + || url.endsWith('.et') + || url.endsWith('.dps') } export const isZipExt = (url) => { @@ -131,17 +134,20 @@ export const isVideoMime = (type) => { export const isDocumentMime = (type) => { return type === 'text/plain' || type === 'application/pdf' - || type === 'application/vnd.ms-word' + || type === 'application/vnd.msword' || type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' || type === 'application/vnd.ms-excel' || type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' || type === 'application/vnd.ms-powerpoint' || type === 'application/vnd.openxmlformats-officedocument.presentationml.presentation' + || type === 'application/kswps' + || type === 'application/kset' + || type === 'application/ksdps' } export const isZipMime = (type) => { return type === 'application/zip' - || type === 'application/x-tar' + || type === 'application/rar' } export const isImageMime = (type) => {