javascript - Unable to upload audio to the server -


i able upload audio locally. uploading audio server not working. code is:

module.exports.uploadaudio = function (req, res) {     var form = new multiparty.form();      form.parse(req, function (err, fields, files) {         console.log("audio_path=======>>>> " + json.stringify(files.file[0].path));          cloudinary.uploader.upload(files.file[0].path, function (result) {             console.log(result);             obj.key2 = result.url;             res.send({                 result: result,                 serverstatus: 200,                 response_message: "audio uploaded"             });         }, {             resource_type: "auto"         })     }) } 


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 -