Skip to content

Commit faef1df

Browse files
committed
fix(game/server): remove formidable
1 parent 1f19191 commit faef1df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

game/server/koa-router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Koa from 'koa';
22
import Router from '@koa/router';
33
import { readFile } from 'fs/promises';
4-
import { File } from 'formidable';
54

65
// @ts-ignore - no types
76
import { setHttpCallback } from '@citizenfx/http-wrapper';
@@ -33,7 +32,8 @@ export async function createServer(uploadStore: UploadStore) {
3332
ctx.body = { status: 'error', message: 'No file provided' };
3433
}
3534

36-
const file = ctx.request.files?.['file'] as File | undefined
35+
// i am so very sorry for this, but FivM and formidable fucking hate each other
36+
const file = ctx.request.files?.['file'] as any;
3737
if (!file) {
3838
ctx.status = 400;
3939
ctx.body = { status: 'error', message: 'No file provided' };

0 commit comments

Comments
 (0)