mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 00:47:53 +00:00
increase upload limit
This commit is contained in:
1 parent
f0fd411640
commit
a5c5161939
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||
})?;
|
||||
},
|
||||
|
||||
+1
-1
@@ -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>> {
|
||||
|
||||
Reference in new issue
Block a user