1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

attachments build cleanup

This commit is contained in:
Kyle Spearrin
2017-08-08 17:50:40 -04:00
parent fecd5b3a1a
commit e081213615
6 changed files with 11 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace Bit.Core.Models.Api
: base("attachment")
{
Id = id;
Url = $"{globalSettings.Attachment.BaseUrl}{cipher.Id}/{id}";
Url = $"{globalSettings.Attachment.BaseUrl}/{cipher.Id}/{id}";
FileName = data.FileName;
Size = data.SizeString;
SizeName = Utilities.CoreHelpers.ReadableBytesSize(data.Size);