From 955755831ce61bbb100d6240406d1c7c340cc539 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 12 Jul 2017 14:42:39 -0400 Subject: [PATCH] return CipherResponseModel from attachment post --- src/Api/Controllers/CiphersController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")]