Node.js error: too many parameters Error while uploading bulk data

后端 未结 3 1114
独厮守ぢ
独厮守ぢ 2020-12-31 08:43

I have a task to upload user data in bulk through csv file. I am using nodejs and express framework. When i submit csv file having 60 to 70 rows it

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-31 09:31

    I'm not sure where you guys are testing your API but for me it was because I set the Content-Type header to application/x-www-form-urlencoded in Postman. Once I removed the header and used form-data under the body section, it solved the issue. Make sure to always use form-data when uploading files. Hope it helps...

提交回复
热议问题