Skip to content

Commit

Permalink
Update mod.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hviana committed Jun 2, 2020
1 parent 354dd50 commit 5c2fa4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod.ts
Expand Up @@ -129,10 +129,10 @@ const preUploadValidate = function (
} in ${file.name}), allowed extensions: ${extensions}. `;
}
}
if (totalBytes > maxSizeBytes) {
validatios +=
`Maximum total upload size exceeded, size: ${totalBytes} bytes, maximum: ${maxSizeBytes} bytes. `;
}
}
if (totalBytes > maxSizeBytes) {
validatios +=
`Maximum total upload size exceeded, size: ${totalBytes} bytes, maximum: ${maxSizeBytes} bytes. `;
}
if (validatios != "") {
context.throw(422, validatios);
Expand Down

0 comments on commit 5c2fa4d

Please sign in to comment.