s3: return 0 on failure instead of null when getting attachment size

This commit is contained in:
Abdullah Atta committed 2024-05-16 13:14:16 +05:00
1 parent 45a8f056b9
commit 6e192e1765
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ namespace Notesnook.API.Interfaces
{
Task DeleteObjectAsync(string userId, string name);
Task DeleteDirectoryAsync(string userId);
Task<long?> GetObjectSizeAsync(string userId, string name);
Task<long> GetObjectSizeAsync(string userId, string name);
string GetUploadObjectUrl(string userId, string name);
string GetDownloadObjectUrl(string userId, string name);
Task<MultipartUploadMeta> StartMultipartUploadAsync(string userId, string name, int parts, string uploadId = null);