diff --git a/bindings/matrix-sdk-ffi/src/timeline/mod.rs b/bindings/matrix-sdk-ffi/src/timeline/mod.rs index 59d147427..3560f6820 100644 --- a/bindings/matrix-sdk-ffi/src/timeline/mod.rs +++ b/bindings/matrix-sdk-ffi/src/timeline/mod.rs @@ -223,6 +223,23 @@ pub struct UploadParameters { use_send_queue: bool, } +/// A source for uploading a file +#[derive(uniffi::Enum)] +pub enum UploadSource { + /// Upload source is a file on disk + File { + /// Path to file + filename: String, + }, + /// Upload source is data in memory + Data { + /// Data being uploaded + data: Vec, + /// Filename to associate with data + filename: String, + }, +} + #[derive(uniffi::Record)] pub struct ReplyParameters { /// The ID of the event to reply to.