Fixed EACCES permission when mounting bind volume, add dynamic location for backup directory

This commit is contained in:
Alex Tran
2022-02-11 22:23:06 -06:00
parent 4f47c8c06b
commit 56627caf5b
6 changed files with 17 additions and 10 deletions

View File

@@ -4,9 +4,10 @@ import { existsSync, mkdirSync } from 'fs';
import { diskStorage } from 'multer';
import { extname } from 'path';
import { Request } from 'express';
import { APP_UPLOAD_LOCATION } from '../constants/upload_location.constant';
export const multerConfig = {
dest: process.env.UPLOAD_LOCATION,
dest: APP_UPLOAD_LOCATION,
};
export const multerOption: MulterOptions = {