From 37f275d94ba6e8096e826385626ca5c0e68850d0 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 30 Dec 2024 08:54:41 +0000 Subject: [PATCH] feat: revert: store attachments with the card rather than as a file Files stored with the card don't appear as covers, nor can they be viewed within the deck app, only downloaded. --- src/nextcloud/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nextcloud/client.rs b/src/nextcloud/client.rs index 388c887..479e579 100644 --- a/src/nextcloud/client.rs +++ b/src/nextcloud/client.rs @@ -228,7 +228,7 @@ impl<'ctx> DeckClient<'ctx> { APIResult::new( with_exponential_backoff!(&self.ctx, { let form: multipart::Form = multipart::Form::new(); - let form = form.text("type", "deck_file"); + let form = form.text("type", "file"); let form = form .file("file", file.as_pathbuf()) .await