increase upload limit

This commit is contained in:
Brandon Thomas committed 2025-09-22 15:45:31 -04:00
1 parent f0fd411640
commit a5c5161939
2 files changed
+2 -2

No files matched your search

@@ -61,7 +61,7 @@ pub async fn drain_multipart_request(mut multipart_payload: Multipart) -> Anyhow
file_name = field_filename.clone();
file_bytes = checked_read_multipart_bytes(&mut field).await
.map_err(|err| {
warn!("Error reading audio upload: {:?}", &err);
warn!("Error reading multipart upload: {:?}", &err);
err
})?;
},
@@ -7,7 +7,7 @@ use log::warn;
const MIN_BYTES : usize = 10;
//const MAX_BYTES : usize = 1024 * 1024 * 20; // 20 Mb
const MAX_BYTES : usize = 1024 * 1024 * 125; // 125 Mb
const MAX_BYTES : usize = 1024 * 1024 * 1024 * 10; // 10 GiB
/// Read any field from a multipart form as bytes, but do some error checking.
pub async fn checked_read_multipart_bytes(field: &mut Field) -> anyhow::Result<Option<BytesMut>> {