From 9f919920bcbd44c239aec3a3c4a843bc8b3095eb Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 21 May 2018 21:03:52 -0400 Subject: [PATCH] RequestSizeLimit for all attachment endpoints --- src/Api/Controllers/CiphersController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Api/Controllers/CiphersController.cs b/src/Api/Controllers/CiphersController.cs index 581f89cda0..69fe8aef8f 100644 --- a/src/Api/Controllers/CiphersController.cs +++ b/src/Api/Controllers/CiphersController.cs @@ -366,6 +366,7 @@ namespace Bit.Api.Controllers } [HttpPost("{id}/attachment")] + [RequestSizeLimit(105_906_176)] [DisableFormValueModelBinding] public async Task PostAttachment(string id) { @@ -389,6 +390,7 @@ namespace Bit.Api.Controllers } [HttpPost("{id}/attachment-admin")] + [RequestSizeLimit(105_906_176)] [DisableFormValueModelBinding] public async Task PostAttachmentAdmin(string id) {