Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sails.js form post not submitting any data

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.

like image 623
Nakarmi Avatar asked Apr 21 '15 06:04

Nakarmi


Video Answer


1 Answers

With skipper, you have to put all your inputs files at the end of the form. Otherwise it could bug-out.

like image 152
jeremie payet Avatar answered Oct 06 '22 00:10

jeremie payet