diff --git a/src/Api/Controllers/CiphersController.cs b/src/Api/Controllers/CiphersController.cs index f5a333ec0b..4a766fb80a 100644 --- a/src/Api/Controllers/CiphersController.cs +++ b/src/Api/Controllers/CiphersController.cs @@ -224,7 +224,7 @@ namespace Bit.Api.Controllers [HttpPost("{id}/attachment")] [DisableFormValueModelBinding] - public async Task PostAttachment(string id) + public async Task PostAttachment(string id) { ValidateAttachment(); @@ -241,6 +241,8 @@ namespace Bit.Api.Controllers await _cipherService.CreateAttachmentAsync(cipher, stream, fileName, Request.ContentLength.GetValueOrDefault(0), userId); }); + + return new CipherResponseModel(cipher, _globalSettings); } [HttpPost("{id}/attachment/{attachmentId}/share")]