feat: revert: store attachments with the card rather than as a file
Some checks failed
Test / build (map[name:stable]) (push) Successful in 4m21s
Test / build (map[name:nightly]) (push) Successful in 3m35s
Release Please / Release-plz (push) Failing after 31s

Files stored with the card don't appear as covers, nor can they be viewed within the deck app, only downloaded.
This commit is contained in:
Paul Campbell 2024-12-30 08:54:41 +00:00
parent 1595db773b
commit 37f275d94b

View file

@ -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