Closed AriefLuthfi79 closed 3 years ago
export const createWidgetIconByClient = async (
req: Request,
res: Response,
next: NextFunction
): Promise<any> => {
var responses = [];
const form = new formidable.IncomingForm({ multiples: true });
const dirUploads: string = './public';
const regex = new RegExp("(.*?)\.(svg|png|jpg|jpeg)$");
form.on("file", (tes, oke) => {
console.log("aowjoawoj");
});
}
I hope someone could helped me out :)
do you ever form.parse ?
@GrosSacASac yeah i've been using form.parse, but my problem is for multiple upload files
@GrosSacASac thanks for help, i solved my problem with form.parse instead of event trigger
Well, all of events formidable not getting fired, i've been disabled all of my middlewares
I have tried google, stackoverflow, github issues but couldn't find anything related to this, so i hope it's ok to file this issue.
Cheers :)