Adding some code to upload object

This commit is contained in:
2026-07-22 17:02:19 -04:00
parent 9f0d26e775
commit ceeec1d2cb
3 changed files with 80 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
/*
pub async fn init_config(url: &str, region: String) -> Result<aws_config::SdkConfig, std::io::Error> {
let r = region.as_str();
let config = aws_config::from_env().endpoint_url(url).region(r).load().await;
Ok(config)
}
*/
pub struct Config {
pub url: String,
pub bucket: String,
pub region: String,
}