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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -