diff options
| -rw-r--r-- | src/routes/model.rs | 2 | ||||
| -rw-r--r-- | src/routes/user.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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<i32>, - ContentLengthLimit(multipart): ContentLengthLimit<Multipart, { 1024 * 1024 }>, + ContentLengthLimit(multipart): ContentLengthLimit<Multipart, { 1024 * 1024 * 40 }>, ) -> Result<Json<ModelUpload>, 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<Json<UserList>, AppError> { /// Edit the avatar of the user linked to the claims async fn edit_my_avatar( claims: Claims, - ContentLengthLimit(multipart): ContentLengthLimit<Multipart, { 1024 * 1024 }>, + ContentLengthLimit(multipart): ContentLengthLimit<Multipart, { 1024 * 1024 * 5 }>, ) -> Result<Json<UserList>, AppError> { let mut user = match User::find_by_id(claims.user_id).await { Ok(user) => user, |
