dont throw an error if the file is already uploaded

This commit is contained in:
blek 2023-10-10 18:03:20 +10:00
parent 5fbb8fdc9c
commit bddd63e134
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 0 additions and 2 deletions

View File

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