Can attach file to movement

This commit is contained in:
2025-04-28 21:08:25 +02:00
parent ee145dab4f
commit 211c81dd66
5 changed files with 164 additions and 1 deletions

View File

@ -42,6 +42,7 @@ pub struct ServerConstraints {
pub token_max_inactivity: LenConstraints,
pub account_name: LenConstraints,
pub movement_label: LenConstraints,
pub file_allowed_types: &'static [&'static str],
}
impl Default for ServerConstraints {
@ -52,6 +53,13 @@ impl Default for ServerConstraints {
token_max_inactivity: LenConstraints::new(3600, 3600 * 24 * 365),
account_name: LenConstraints::not_empty(50),
movement_label: LenConstraints::not_empty(200),
file_allowed_types: &[
"image/jpeg",
"image/png",
"image/webp",
"image/gif",
"application/pdf",
],
}
}
}