Can attach file to movement
This commit is contained in:
@ -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",
|
||||
],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user