Monday, 4 February 2019

[HELP] Multer, S3, EJS Issue

I'm using `multer` to upload images to S3.​Here's my (`addproduct.ejs`) upload form: https://ghostbin.com/paste/xjdu7​And this is the controller to add product: https://ghostbin.com/paste/xs6pv​And this is the route: this.router.post("/products/add", this.productController.postAddProduct);​But when I submit the form, I got Failing row contains (11, 1, null, null, null, null, null, null, null, null, null, null, null, null, 2019-02-03 15:03:45.260926+00, 2019-02-03 15:03:45.260926+00).​If I removed enctype="multipart/form-data" and submitted, error is "Error: No File Selected"​Here's the list of middlewares I use: https://ghostbin.com/paste/nbn8v​Here's the original post on SO.​Please help me, and let me know if I did not describe clearly.---Edit: Added Ghostbin and SO links.

Submitted February 04, 2019 at 11:53AM by xzenuu

No comments:

Post a Comment