summaryrefslogtreecommitdiffstats
path: root/src/routes/user.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-13 10:00:25 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-10-13 10:00:25 +0000
commitb4b971dd768004ba453edc6973aa3edd815799a3 (patch)
tree12a978beffae125992f99f85175ddca67a80b6e8 /src/routes/user.rs
parentc6b9f18408303e6dfacd977a513a068776aa6bcd (diff)
Increase file max size to upload
Diffstat (limited to 'src/routes/user.rs')
-rw-r--r--src/routes/user.rs2
1 files changed, 1 insertions, 1 deletions
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,