From 7c3625b7a6fc10ccf0cd6e99934749045c603eef Mon Sep 17 00:00:00 2001 From: shivraj1182 <79820642+shivraj1182@users.noreply.github.com> Date: Wed, 3 Dec 2025 11:58:40 +0530 Subject: [PATCH] Update media.proto AddMediaFileRequest now supports file path references for streaming uploads. --- proto/anki/media.proto | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/proto/anki/media.proto b/proto/anki/media.proto index ddf1c5fb0..74e31e3a3 100644 --- a/proto/anki/media.proto +++ b/proto/anki/media.proto @@ -36,13 +36,11 @@ message TrashMediaFilesRequest { repeated string fnames = 1; } -// AddMediaFileRequest now supports both inline byte data and file path references. -// Using oneof ensures backward compatibility - exactly one must be provided. +// AddMediaFileRequest now supports file path references for streaming uploads. message AddMediaFileRequest { string desired_name = 1; - oneof data_source { - bytes data = 2; - string file_path = 3; + bytes data = 2; + optional string file_path = ; } }