Browse Source

附件上传限制100MB

黑艺新账号
ndbs 1 year ago
parent
commit
434a4f0278
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs View File

@@ -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("保存成功");
}


Loading…
Cancel
Save