We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f19191 commit faef1dfCopy full SHA for faef1df
game/server/koa-router.ts
@@ -1,7 +1,6 @@
1
import Koa from 'koa';
2
import Router from '@koa/router';
3
import { readFile } from 'fs/promises';
4
-import { File } from 'formidable';
5
6
// @ts-ignore - no types
7
import { setHttpCallback } from '@citizenfx/http-wrapper';
@@ -33,7 +32,8 @@ export async function createServer(uploadStore: UploadStore) {
33
32
ctx.body = { status: 'error', message: 'No file provided' };
34
}
35
36
- const file = ctx.request.files?.['file'] as File | undefined
+ // i am so very sorry for this, but FivM and formidable fucking hate each other
+ const file = ctx.request.files?.['file'] as any;
37
if (!file) {
38
ctx.status = 400;
39
0 commit comments