2023-08-04
This commit is contained in:
@@ -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" // 压缩包文件类型
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user