π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Make fileSize optional in FileInfo schema
Manav Rathi5b5e8a154e38
diff --git a/web/packages/media/file.ts b/web/packages/media/file.tsindex 9ede63ab24..7715e182cb 100644--- a/web/packages/media/file.ts+++ b/web/packages/media/file.ts@@ -208,8 +208,10 @@ export const RemoteFileObjectAttributes = z.looseObject({export interface FileInfo {/*** The size of the file (in bytes).+ *+ * This will not be present for files with zero length.*/- fileSize: number;+ fileSize?: number;/*** The size of the thumbnail associated with the file (in bytes).*/@@ -217,7 +219,7 @@ export interface FileInfo {}export const RemoteFileInfo = z.looseObject({- fileSize: z.number(),+ fileSize: z.number().nullish().transform(nullToUndefined),thumbSize: z.number(),});