diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-10-13 10:00:25 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-10-13 10:00:25 +0000 |
| commit | b4b971dd768004ba453edc6973aa3edd815799a3 (patch) | |
| tree | 12a978beffae125992f99f85175ddca67a80b6e8 /src/routes/model.rs | |
| parent | c6b9f18408303e6dfacd977a513a068776aa6bcd (diff) | |
Increase file max size to upload
Diffstat (limited to 'src/routes/model.rs')
| -rw-r--r-- | src/routes/model.rs | 2 |
1 files changed, 1 insertions, 1 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, |
