mirror of
https://github.com/bitwarden/server
synced 2026-01-03 09:03:44 +00:00
support for attachments keys
load existing items and set attachments on key update
This commit is contained in:
21
src/Core/Models/Api/CipherAttachmentModel.cs
Normal file
21
src/Core/Models/Api/CipherAttachmentModel.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Bit.Core.Models.Data;
|
||||
using Bit.Core.Utilities;
|
||||
|
||||
namespace Bit.Core.Models.Api
|
||||
{
|
||||
public class CipherAttachmentModel
|
||||
{
|
||||
public CipherAttachmentModel() { }
|
||||
|
||||
public CipherAttachmentModel(CipherAttachment.MetaData data)
|
||||
{
|
||||
FileName = data.FileName;
|
||||
Key = data.Key;
|
||||
}
|
||||
|
||||
[EncryptedStringLength(1000)]
|
||||
public string FileName { get; set; }
|
||||
[EncryptedStringLength(1000)]
|
||||
public string Key { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user