diff --git a/src/media/backends/filesystem-backend.ts b/src/media/backends/filesystem-backend.ts index cf9ce7cce..42924d288 100644 --- a/src/media/backends/filesystem-backend.ts +++ b/src/media/backends/filesystem-backend.ts @@ -36,7 +36,7 @@ export class FilesystemBackend implements MediaBackend { await this.ensureDirectory(); try { await fs.writeFile(filePath, buffer, null); - return ['/' + filePath, null]; + return ['/uploads/' + fileName, null]; } catch (e) { this.logger.error((e as Error).message, (e as Error).stack, 'saveFile'); throw new MediaBackendError(`Could not save '${filePath}'`);