mirror of
https://github.com/bitwarden/mobile
synced 2026-01-10 12:33:28 +00:00
Attachment azure upload blobs (#1345)
* Update Size limits * Add new Api paths for direct upload of Cipher Attachments * Add Attachment upload to fileUploadService * Save with direct upload and fallback to legacy uplaod CipherID is required for direct upload to request an upload URL * Inform on when to remove legacy code * Test Attachment upload
This commit is contained in:
@@ -6,5 +6,6 @@ namespace Bit.Core.Models.Request
|
||||
{
|
||||
public string FileName { get; set; }
|
||||
public string Key { get; set; }
|
||||
public long FileSize { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
12
src/Core/Models/Response/AttachmentUploadDataReponse.cs
Normal file
12
src/Core/Models/Response/AttachmentUploadDataReponse.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Bit.Core.Enums;
|
||||
|
||||
namespace Bit.Core.Models.Response
|
||||
{
|
||||
public class AttachmentUploadDataResponse
|
||||
{
|
||||
public string AttachmentId { get; set; }
|
||||
public FileUploadType FileUploadType { get; set; }
|
||||
public CipherResponse CipherResponse { get; set; }
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user