forked from Yara724/api
Fixed blame resend
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { extname } from "node:path";
|
import { extname } from "node:path";
|
||||||
|
import { mkdirSync } from "node:fs";
|
||||||
import {
|
import {
|
||||||
Body,
|
Body,
|
||||||
Controller,
|
Controller,
|
||||||
@@ -414,7 +415,9 @@ export class RequestManagementV2Controller {
|
|||||||
{
|
{
|
||||||
storage: diskStorage({
|
storage: diskStorage({
|
||||||
destination: (req, file, cb) => {
|
destination: (req, file, cb) => {
|
||||||
cb(null, "./uploads");
|
const uploadDir = "./files/blame-resend";
|
||||||
|
mkdirSync(uploadDir, { recursive: true });
|
||||||
|
cb(null, uploadDir);
|
||||||
},
|
},
|
||||||
filename: (req, file, cb) => {
|
filename: (req, file, cb) => {
|
||||||
const uniqueSuffix =
|
const uniqueSuffix =
|
||||||
|
|||||||
Reference in New Issue
Block a user