Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix file extension splitting
  • Loading branch information
regalijan committed Mar 26, 2024
1 parent e5bbde2 commit 237765a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/api/reports/submit.ts
Expand Up @@ -140,8 +140,8 @@ export async function onRequestPost(context: RequestContext) {
const filesToProcess = [];

for (const file of files) {
const fileParts = file.name.split(".").toLowerCase();
let fileExten = fileParts.at(-1);
const fileParts = file.name.split(".");
let fileExten = fileParts.at(-1).toLowerCase();

if (fileExten === "mov") fileExten = "mp4";

Expand Down

0 comments on commit 237765a

Please sign in to comment.