mirror of
https://github.com/PlayEdu/backend
synced 2025-07-24 15:39:46 +08:00
课件上传组件优化
This commit is contained in:
parent
e95343fe0a
commit
54b55d8424
@ -61,6 +61,7 @@ export const UploadCoursewareButton = (props: PropsInterface) => {
|
||||
let extension: any = file.name.split(".");
|
||||
extension = extension[extension.length - 1];
|
||||
if (
|
||||
extension === "rar" ||
|
||||
file.type ===
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" ||
|
||||
file.type === "application/msword" ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user