javascript - Can not upload image from MAC or ubuntu from server in nodejs -
i trying upload image using multiparty in nodejs. working fine in local host having problem when uploading server. here 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 working fine when uploading image windows showing timeout while uploading via mac or ubuntu.
issue because of ec2 server settings. migrated code heroku server , working fine there.
Comments
Post a Comment