From b4b971dd768004ba453edc6973aa3edd815799a3 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 13 Oct 2022 12:00:25 +0200 Subject: Increase file max size to upload --- src/routes/model.rs | 2 +- src/routes/user.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/routes/model.rs b/src/routes/model.rs index ea6f314..58ec732 100644 --- a/src/routes/model.rs +++ b/src/routes/model.rs @@ -132,7 +132,7 @@ async fn edit_model( async fn upload_model_file( claims: Claims, Path(model_id): Path, - ContentLengthLimit(multipart): ContentLengthLimit, + ContentLengthLimit(multipart): ContentLengthLimit, ) -> Result, AppError> { let model = match Model::find_by_id(model_id).await { Ok(model) => model, diff --git a/src/routes/user.rs b/src/routes/user.rs index efa6dd5..e78ec49 100644 --- a/src/routes/user.rs +++ b/src/routes/user.rs @@ -46,7 +46,7 @@ async fn get_me(claims: Claims) -> Result, AppError> { /// Edit the avatar of the user linked to the claims async fn edit_my_avatar( claims: Claims, - ContentLengthLimit(multipart): ContentLengthLimit, + ContentLengthLimit(multipart): ContentLengthLimit, ) -> Result, AppError> { let mut user = match User::find_by_id(claims.user_id).await { Ok(user) => user, -- cgit v1.2.3-71-g8e6c