Skip to content

Commit b36c585

Browse files
authored
Change file limits (#739)
1 parent 7bbcdec commit b36c585

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Refactoring & Restructuring, removing cross-crate exports (breaking for Library dependents)
1414
* Properly separate `protocol` parts from `application` in `bcr-ebill-core` (breaking for Library dependents, breaking DB change)
1515
* Remove email from anon identities and contacts
16+
* Change document max file size to 10 MB and max files on bill to 20
1617

1718
# 0.4.12
1819

crates/bcr-ebill-api/src/constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Validation
2-
pub const MAX_DOCUMENT_FILE_SIZE_BYTES: usize = 1_000_000; // ~1 MB
2+
pub const MAX_DOCUMENT_FILE_SIZE_BYTES: usize = 10_000_000; // ~10 MB
33
pub const MAX_PICTURE_FILE_SIZE_BYTES: usize = 20_000; // ~20 KB
4-
pub const MAX_BILL_ATTACHMENTS: usize = 100;
4+
pub const MAX_BILL_ATTACHMENTS: usize = 20;
55
pub const MAX_FILE_NAME_CHARACTERS: usize = 200;
66
pub const VALID_FILE_MIME_TYPES: [&str; 3] = ["image/jpeg", "image/png", "application/pdf"];
77

0 commit comments

Comments
 (0)