Fix mobile queue navigation, draft/loading states, and Intake overflow; seed MinIO demo PDFs so document viewing does not 500; add e2e smoke coverage.
10 lines
585 B
C#
10 lines
585 B
C#
public interface IDocumentStorageService
|
|
{
|
|
Task<(string objectKey, string sha256, long fileSize)> UploadAsync(Stream fileStream, string contentType, Guid batchId);
|
|
Task<string> GetPresignedUrlAsync(string objectKey);
|
|
Task<Stream> DownloadAsync(string objectKey);
|
|
/// <summary>Returns false when the object is missing from the bucket.</summary>
|
|
Task<bool> ObjectExistsAsync(string objectKey);
|
|
/// <summary>Uploads bytes only when the object key is not already present.</summary>
|
|
Task EnsureObjectAsync(string objectKey, byte[] content, string contentType);
|
|
} |