diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs index f2f8dee9d..3c5a8f585 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs @@ -63,6 +63,10 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers return HttpNotFound(); } } + if (chunks > 100) + { + return Fail("上传失败,文件超出可上传大小限制"); + } annexesFileIBLL.SaveChunkAnnexes(fileGuid, chunk, Filedata.InputStream); return Success("保存成功"); }