dont throw an error if the file is already uploaded
This commit is contained in:
parent
5fbb8fdc9c
commit
bddd63e134
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue