store-uplaoded-path
All checks were successful
deploy / deploy (push) Successful in 1m5s

This commit is contained in:
2024-10-23 21:41:29 +03:00
parent 4db1ac6ff7
commit a4ea55cf3c
4 changed files with 13 additions and 5 deletions

View File

@@ -118,6 +118,7 @@ pub async fn proxy_handler(
error!("cannot upload to storj: {}", e);
} else {
warn!("file {} uploaded to storj", filekey);
state.set_path(&filekey, &filekey).await;
}
let _ = thumbdata_save(filedata.clone(), &state, &filekey, content_type.to_string())
.await;
@@ -170,6 +171,7 @@ pub async fn proxy_handler(
warn!("cannot upload to storj: {}", e);
} else {
warn!("file {} uploaded to storj", filekey);
state.set_path(&filekey, &filepath).await;
}
Ok(HttpResponse::Ok().content_type(content_type).body(filedata))
},