Skip to content

Commit

Permalink
Increase file size limit (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed May 30, 2022
1 parent d3b578f commit 02bf5ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/version_creation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,8 @@ pub async fn upload_file(
})?;

let data = read_from_field(
field, 100 * (1 << 20),
"Project file exceeds the maximum of 100MiB. Contact a moderator or admin to request permission to upload larger files."
field, 500 * (1 << 20),
"Project file exceeds the maximum of 500MiB. Contact a moderator or admin to request permission to upload larger files."
).await?;

let hash = sha1::Sha1::from(&data).hexdigest();
Expand Down

0 comments on commit 02bf5ad

Please sign in to comment.