媒体库增加文件上传类型
This commit is contained in:
parent
6945d9026d
commit
350913c2fb
|
|
@ -114,6 +114,9 @@ export const isDocumentExt = (url) => {
|
||||||
|| url.endsWith('.xlsx')
|
|| url.endsWith('.xlsx')
|
||||||
|| url.endsWith('.ppt')
|
|| url.endsWith('.ppt')
|
||||||
|| url.endsWith('.pptx')
|
|| url.endsWith('.pptx')
|
||||||
|
|| url.endsWith('.wps')
|
||||||
|
|| url.endsWith('.et')
|
||||||
|
|| url.endsWith('.dps')
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isZipExt = (url) => {
|
export const isZipExt = (url) => {
|
||||||
|
|
@ -131,17 +134,20 @@ export const isVideoMime = (type) => {
|
||||||
export const isDocumentMime = (type) => {
|
export const isDocumentMime = (type) => {
|
||||||
return type === 'text/plain'
|
return type === 'text/plain'
|
||||||
|| type === 'application/pdf'
|
|| type === 'application/pdf'
|
||||||
|| type === 'application/vnd.ms-word'
|
|| type === 'application/vnd.msword'
|
||||||
|| type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
|| type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
||||||
|| type === 'application/vnd.ms-excel'
|
|| type === 'application/vnd.ms-excel'
|
||||||
|| type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|| type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||||
|| type === 'application/vnd.ms-powerpoint'
|
|| type === 'application/vnd.ms-powerpoint'
|
||||||
|| type === 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
|
|| type === 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
|
||||||
|
|| type === 'application/kswps'
|
||||||
|
|| type === 'application/kset'
|
||||||
|
|| type === 'application/ksdps'
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isZipMime = (type) => {
|
export const isZipMime = (type) => {
|
||||||
return type === 'application/zip'
|
return type === 'application/zip'
|
||||||
|| type === 'application/x-tar'
|
|| type === 'application/rar'
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isImageMime = (type) => {
|
export const isImageMime = (type) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue