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();