我使用ionic2枢纽换乘插件上传图片。图像被上传到云成功,但它需要太多的时间来上传。如何加快在ionic2应用程序中的图像上传。任何人都可以帮忙吗?ionic2图片上传有效
const fileTransfer: TransferObject = this.transfer.create();
fileTransfer.upload(filename, url, options).then(data => {
this.presentToast('Image succesful uploaded.');
}, err => {
this.presentToast('Error while uploading file.');
});