mirror of
https://github.com/ankitects/anki.git
synced 2026-01-10 12:33:55 -05:00
Update media.proto
AddMediaFileRequest now supports file path references for streaming uploads.
This commit is contained in:
parent
8e868559c9
commit
7c3625b7a6
1 changed files with 3 additions and 5 deletions
|
|
@ -36,13 +36,11 @@ message TrashMediaFilesRequest {
|
||||||
repeated string fnames = 1;
|
repeated string fnames = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddMediaFileRequest now supports both inline byte data and file path references.
|
// AddMediaFileRequest now supports file path references for streaming uploads.
|
||||||
// Using oneof ensures backward compatibility - exactly one must be provided.
|
|
||||||
|
|
||||||
message AddMediaFileRequest {
|
message AddMediaFileRequest {
|
||||||
string desired_name = 1;
|
string desired_name = 1;
|
||||||
oneof data_source {
|
|
||||||
bytes data = 2;
|
bytes data = 2;
|
||||||
string file_path = 3;
|
optional string file_path = ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue