diff --git a/packages/server/src/utils/testing/apiUtils.ts b/packages/server/src/utils/testing/apiUtils.ts index 2d7ecf6b3e..8b8ea086a9 100644 --- a/packages/server/src/utils/testing/apiUtils.ts +++ b/packages/server/src/utils/testing/apiUtils.ts @@ -60,7 +60,7 @@ export async function execRequestC(sessionId: string, method: string, path: stri if (body) appContextOptions.request.body = body; - if (options.filePath) appContextOptions.request.files = { file: { path: options.filePath } }; + if (options.filePath) appContextOptions.request.files = { file: { filepath: options.filePath } }; if (options.query) appContextOptions.request.query = options.query; const context = await koaAppContext(appContextOptions);