AI Implementation feature(899): Data and run (#39)
This commit was merged in pull request #39.
This commit is contained in:
@@ -9,7 +9,7 @@ export class UploadsStaticMiddleware implements NestMiddleware {
|
||||
private rootDir = '/tmp';
|
||||
|
||||
constructor(config: ConfigService) {
|
||||
const dir = path.resolve(config.get<string>('UPLOAD_DIR', '/data/hipctf/uploads'));
|
||||
const dir = path.resolve(config.get<string>('UPLOAD_DIR', './data/uploads'));
|
||||
if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
|
||||
this.rootDir = dir;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user