mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
RequestSizeLimit for all attachment endpoints
This commit is contained in:
@@ -366,6 +366,7 @@ namespace Bit.Api.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("{id}/attachment")]
|
[HttpPost("{id}/attachment")]
|
||||||
|
[RequestSizeLimit(105_906_176)]
|
||||||
[DisableFormValueModelBinding]
|
[DisableFormValueModelBinding]
|
||||||
public async Task<CipherResponseModel> PostAttachment(string id)
|
public async Task<CipherResponseModel> PostAttachment(string id)
|
||||||
{
|
{
|
||||||
@@ -389,6 +390,7 @@ namespace Bit.Api.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("{id}/attachment-admin")]
|
[HttpPost("{id}/attachment-admin")]
|
||||||
|
[RequestSizeLimit(105_906_176)]
|
||||||
[DisableFormValueModelBinding]
|
[DisableFormValueModelBinding]
|
||||||
public async Task<CipherResponseModel> PostAttachmentAdmin(string id)
|
public async Task<CipherResponseModel> PostAttachmentAdmin(string id)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user