Use AWS SDK (#5959)

This commit is contained in:
François-Xavier Talbot
2026-05-01 09:58:26 +00:00
committed by GitHub
parent 4ddb5640cf
commit 264aade726
5 changed files with 491 additions and 78 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
use std::error::Error;
use std::str::FromStr;
use async_trait::async_trait;
@@ -13,7 +14,7 @@ pub use s3_host::{S3BucketConfig, S3Host};
#[derive(Error, Debug)]
pub enum FileHostingError {
#[error("S3 error when {0}: {1}")]
S3Error(&'static str, s3::error::S3Error),
S3Error(&'static str, #[source] Box<dyn Error + Send + Sync>),
#[error("File system error in file hosting: {0}")]
FileSystemError(#[from] std::io::Error),
#[error("Invalid Filename")]