From bddd63e1344803e356d42b502ea14f8438d352bb Mon Sep 17 00:00:00 2001 From: blek Date: Tue, 10 Oct 2023 18:03:20 +1000 Subject: [PATCH] dont throw an error if the file is already uploaded --- filed/src/files/mod.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/filed/src/files/mod.rs b/filed/src/files/mod.rs index d5ba690..00994d1 100644 --- a/filed/src/files/mod.rs +++ b/filed/src/files/mod.rs @@ -46,8 +46,6 @@ impl File { let path = env.usercontent_dir().join(&filename); if ! path.exists() { fs::write(&path, &data).await; - } else { - return Err("File already uploaded".into()); } let expires = Local::now();