|
navigator.camera.getPicture(onSuccess, onFail, {
mediaType : 0,//只选择图片
quality:80,
allowEdit:false,
targetWidth:100,
targetHeight:100,
// destinationType: navigator.camera.DestinationType.DATA_URL,
destinationType: navigator.camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
//sourceType: navigator.camera.PictureSourceType.PhotoAlbum//在安卓中,这个参数会跳出拍照界面
});
能获取到 文件,现在的问题是 怎么样把文件上传到阿里云 OSS
我现在是用 var ft = new FileTransfer();
ft.upload(fileURL, encodeURI(SERVER), success, fail, options);
但怎么样才能 上传到 阿里云呢 |
|