fix problems
All checks were successful
Xiaoshiliu / build (push) Successful in 3m55s

This commit is contained in:
lychang
2025-10-04 22:56:00 +08:00
parent baf2af44e3
commit 394e56c8e2
4 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ const videoUpload = multer({
storage: storage,
fileFilter: mixedFileFilter, // 使用混合文件过滤器
limits: {
fileSize: 100 * 1024 * 1024 // 100MB 限制
fileSize: 350 * 1024 * 1024 // 100MB 限制
}
});

View File

@@ -63,7 +63,7 @@ export const videoApi = {
* @returns {Object} 验证结果
*/
validateVideoFile(file) {
const maxSize = apiConfig.upload.video?.maxFileSize || 100 * 1024 * 1024 // 100MB
const maxSize = apiConfig.upload.video?.maxFileSize || 350 * 1024 * 1024 // 350MB
const allowedTypes = apiConfig.upload.video?.allowedTypes || [
'video/mp4',
'video/avi',

View File

@@ -90,7 +90,7 @@ const props = defineProps({
},
maxSize: {
type: Number,
default: 100 * 1024 * 1024 // 100MB
default: 350 * 1024 * 1024 // 350MB
}
})

View File

@@ -33,7 +33,7 @@ export const apiConfig = {
},
// 视频上传配置
video: {
maxFileSize: 100 * 1024 * 1024, // 100MB
maxFileSize: 350 * 1024 * 1024, // 350MB
allowedTypes: ['video/mp4', 'video/avi', 'video/mov', 'video/wmv', 'video/flv', 'video/webm'],
maxCount: 1 // 最多上传1个视频
}