Recently I came to face an unusual problem while posting a form. The form post works fine when there is no attachment or the attachment image file size is less than 100kb. But when I tried to upload a file larger than 100kb no element in the form is being posted/submitted. When I console.log()
the value it gives undefined. I can't understand what is causing the problem. No errors are shown on console screen. Can anyone help with this problem?
var name = req.param('name');
console.log(name);
The result i get is undefined
.
I'm using sails v0.10.5 on windows 8.1. I'm using postgres as my database.
With skipper, you have to put all your inputs files at the end of the form. Otherwise it could bug-out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With