How to Upload audio .mp3 files on node server in ionic

hello frinds you have any idea or link regarding on this topic please share…
@rapropos @iscorobogaci


@saurabhsharma17, do you need it from client or server side ?
So, i believe from client side you select the desired .mp3 file, and then you want to upload it to server side , right ?

And server side is Node.Js, am i right ?

yes i need to client site to uplode audio file on node.Js server…i also send you mail

hy @iscorobogaci
when i am click on this type off card

then show this type output

then i am click on upload button the audio upload , transfer destination … any idea pleass replay fast

hy i am using to upload audio file on server to install plugings …its work perfectoly


var options: FileUploadOptions = {

fileKey: “file”,

  fileName: **filename**,

  chunkedMode: false,

  mimeType: "multipart/form-data",

  params : {'fileName': **filename**}


//create file transfer object

var fileTransfer : FileTransferObject = this.transfer.create();

//file transfer action

fileTransfer.upload(FilePath with file name,‘http://your serve address/upload/upload.php’, options)

.then((data) => {

var data1 = JSON.stringify(data);


},(err) => {





<?php header('Access-Control-Allow-Origin: *'); $target_path = "uploads/"; $target_path = $target_path . basename( $_FILES['file']['name']); if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { header('Content-type: application/json'); $data = ['success' => true, 'message' => 'Upload and move success']; echo json_encode( $data ); } else{ header('Content-type: application/json'); $data = ['success' => false, 'message' => 'There was an error uploading the file, please try again!']; echo json_encode( $data ); } ?>