diff --git a/.gitignore b/.gitignore index da00f985..27a13f3e 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,4 @@ /SGGL/FineUIPro.Web/FileUpload/Transfer/PunchlistFrom/2024-11 /SGGL/FineUIPro.Web/FileUpload/Transfer/PunchlistFrom/2024-12 +/SGGL/FineUIPro.Web/Web.config diff --git a/SGGL/BLL/Common/AttachFileService.cs b/SGGL/BLL/Common/AttachFileService.cs index d4a5d72d..7756e5e8 100644 --- a/SGGL/BLL/Common/AttachFileService.cs +++ b/SGGL/BLL/Common/AttachFileService.cs @@ -516,5 +516,28 @@ namespace BLL return result; } + + /// + /// 判断文件类型是否是图片 + /// + /// + /// + public static bool IsImage(string FiletExtension) + { + bool result = false; + List list = new List(); + list.Add(".png"); + list.Add(".jpg"); + list.Add(".jpeg"); + foreach (var item in list) + { + if (item == FiletExtension) + { + result = true; + break; + } + } + return result; + } } } diff --git a/SGGL/FineUIPro.Web/AttachFile/Look.aspx b/SGGL/FineUIPro.Web/AttachFile/Look.aspx index 523924a7..193bf8ee 100644 --- a/SGGL/FineUIPro.Web/AttachFile/Look.aspx +++ b/SGGL/FineUIPro.Web/AttachFile/Look.aspx @@ -10,17 +10,19 @@
- -