媒体库增加文件上传类型

This commit is contained in:
jacky 2024-05-11 22:52:29 +08:00
parent b1b60bc309
commit 515e7158f0
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ 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.msword' || type === 'application/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'