-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configurable max upload size. (#11)
- Loading branch information
1 parent
27184b3
commit e398777
Showing
6 changed files
with
41 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
lib/src/main/java/org/veupathdb/lib/jaxrs/raml/multipart/JaxRSMultipartUpload.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.veupathdb.lib.jaxrs.raml.multipart | ||
|
||
/** | ||
* JaxRS Multipart Upload Global Configuration | ||
*/ | ||
object JaxRSMultipartUpload { | ||
|
||
/** | ||
* Maximum allowed size for a file upload (in bytes). | ||
* | ||
* Defaults to 3GiB. | ||
*/ | ||
@JvmStatic | ||
var maxFileUploadSize = 3_221_225_472L | ||
|
||
/** | ||
* Maximum allowed size for an in-memory field, class, or property (in bytes). | ||
* | ||
* Defaults to 16MiB. | ||
*/ | ||
@JvmStatic | ||
var maxInMemoryFieldSize = 16_777_216L | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters