mirror of
https://github.com/bitwarden/server.git
synced 2025-05-28 14:54:50 -05:00
RequestSizeLimit for all attachment endpoints
This commit is contained in:
parent
ffa0a1a02c
commit
9f919920bc
@ -366,6 +366,7 @@ namespace Bit.Api.Controllers
|
||||
}
|
||||
|
||||
[HttpPost("{id}/attachment")]
|
||||
[RequestSizeLimit(105_906_176)]
|
||||
[DisableFormValueModelBinding]
|
||||
public async Task<CipherResponseModel> PostAttachment(string id)
|
||||
{
|
||||
@ -389,6 +390,7 @@ namespace Bit.Api.Controllers
|
||||
}
|
||||
|
||||
[HttpPost("{id}/attachment-admin")]
|
||||
[RequestSizeLimit(105_906_176)]
|
||||
[DisableFormValueModelBinding]
|
||||
public async Task<CipherResponseModel> PostAttachmentAdmin(string id)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user