Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused upload checks
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent b5135ce commit 90606f6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions functions/api/reports/submit.ts
Expand Up @@ -14,9 +14,7 @@ export async function onRequestPost(context: RequestContext) {
actions,
bypass,
description,
filename,
files,
filesize,
turnstileResponse,
usernames,
} = context.data.body;
Expand Down Expand Up @@ -70,12 +68,6 @@ export async function onRequestPost(context: RequestContext) {
)
return errorResponse("File list missing name(s) and/or size(s)", 400);

if (typeof filename !== "string")
return errorResponse("Invalid file name", 400);

if (typeof filesize !== "number" || filesize < 0 || filesize > 536870912)
return errorResponse("Invalid file size", 400);

if (
files.find(
(file) =>
Expand Down

0 comments on commit 90606f6

Please sign in to comment.