|
@@ -1,4 +1,4 @@
|
|
|
-import { Provide, Inject } from '@midwayjs/decorator';
|
|
|
+import { Provide } from '@midwayjs/decorator';
|
|
|
import { Config } from '@midwayjs/core';
|
|
|
import { FrameworkErrorEnum, ServiceError } from 'free-midway-component';
|
|
|
import * as fs from 'node:fs';
|
|
@@ -14,9 +14,6 @@ export class FileService {
|
|
|
@Config('export.file_type')
|
|
|
file_type;
|
|
|
|
|
|
- @Inject()
|
|
|
- ctx;
|
|
|
-
|
|
|
async upload(files, fields) {
|
|
|
const path = `${this.root_path}${sep}${this.file_type}`;
|
|
|
if (!path) {
|