Skip to content

Commit 0dc236a

Browse files
committed
Remove the client side limit from the validator.
1 parent 31648ea commit 0dc236a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/App/Views/ValidateSPIManifest/ValidateSPIManifest+View.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ extension ValidateSPIManifest {
6767
.autofocus(true),
6868
.rows(15),
6969
.text(model.manifest),
70-
// allow more than maxByteSize so we can correctly report on files that are too large
71-
.attribute(named: "maxlength", value: "\(SPIManifest.Manifest.maxByteSize)")
70+
// The limit here is just to stop abuse, the check for size is done on the server.
71+
.attribute(named: "maxlength", value: "500000")
7272
)
7373
),
7474
.button(

0 commit comments

Comments
 (0)