"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
const multer_1 = __importDefault(require("multer"));
// const publicFolder = path.resolve(__dirname, "..", "..", "public");
const publicFolder = path_1.default.resolve(__dirname, "..", "..", "..", "..", "public");
console.log('publicFolder: ', publicFolder);
exports.default = {
    directory: publicFolder,
    storage: multer_1.default.diskStorage({
        destination: publicFolder,
        filename(req, file, cb) {
            const fileName = new Date().getTime() + path_1.default.extname(file.originalname);
            console.log('THE FILE NAME FROM MULTER: ', fileName);
            return cb(null, fileName);
        }
    })
};
