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

Popular posts from this blog

CS-Cart - Change login URL in notification email -

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -