I am trying to upload image using multiparty in nodejs. It is working fine in local host but having problem when uploading from server. Here is the code
module.exports.uploadimg = function (req, res) {
var form = new multiparty.Form();
form.parse(req, function(err, fields, files) {
if(err) console.log(err) cloudinary.uploader.upload(files.file[0].path,function(result) {
res.send({ result:result,
serverStatus:200,
response_message:"image uploaded" });
});
});
}
It is even working fine when i am uploading image from Windows but it is showing timeout while uploading via MAC or Ubuntu.