Есть ли способ сделать ОДИН запрос с многократной загрузкой в IONIC 3?У меня на стороне сервера PHP codeigniter.
это мой код:
upload(){
const fileTransfer: FileTransferObject = this.transfer.create();
var uploadPhoto = JSON.stringify( this.photos );
let options : FileUploadOptions = {
fileKey: 'file',
fileName: 'name.jpg',
headers: {},
params: {
'model': uploadPhoto
}
};
console.log( JSON.stringify( options ) )
fileTransfer.upload(this.photos, encodeURI(this.authService.apiURL + '/serviceupload'), options)
.then(data=> {
console.log( JSON.stringify( data),"data" );
}, (err) => {
// error
})
}