const fileFormat = [
'image/jpeg',
'image/png',
'application/pdf',
'application/msword',
'application/vnd.ms-works',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/vnd.ms-powerpoint'
]
参考文献1:https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
参考文献2:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
参考文献3:https://www.iana.org/assignments/media-types/media-types.xhtml