2023-08-04

This commit is contained in:
2023-08-04 17:06:50 +08:00
parent 70a51ab125
commit 78e8037f08
81 changed files with 8897 additions and 2763 deletions
+13 -1
View File
@@ -1,4 +1,6 @@
namespace BLL
using System.Collections.Generic;
namespace BLL
{
using System.Linq;
using System.Web.UI.WebControls;
@@ -427,5 +429,15 @@
return list;
}
#endregion
// 定义允许上传的文件类型列表
public static List<string> allowExtensions = new List<string>
{
".txt", ".doc", ".docx", ".pdf", ".xls", ".xlsx", ".ppt",".pptx",// 文本和办公文档文件类型
".jpg", ".jpeg", ".png", ".bmp", ".gif", // 图片文件类型
".mp3", ".wav", ".wma", ".ogg", ".ape", ".flac", // 音频文件类型
".mp4", ".avi", ".flv", ".wmv", ".mov", ".rmvb", // 视频文件类型
".zip", ".rar", ".7z" // 压缩包文件类型
};
}
}