|
[其他]
UIAlbumBrowser.open获取到的图片地址上传不了
[复制链接]
UIAlbumBrowser.open获取到的图片地址上传不了
var UIAlbumBrowser = api.require('UIAlbumBrowser');
UIAlbumBrowser.open({
max: 9,
styles: {
bg: '#fff',
mark: {
icon: '',
position: 'bottom_left',
size: 20
},
nav: {
bg: 'rgba(0,0,0,0.6)',
titleColor: '#fff',
titleSize: 18,
cancelColor: '#fff',
cancelSize: 16,
finishColor: '#fff',
finishSize: 16
}
},
rotation: true
}, function(ret) {
if (ret) {
var num=ret['list']['path'];
alert(ret['list'][0]['path']);
var model = api.require('model');
model.uploadFile({
report: false,
data: {
file: {
name: 'apicloud.png',
url: num
},
values: {
key1: 'value1',
key2: 'value2'
}
}
}, function(ret, err){
alert( JSON.stringify(ret) );
});
}
});
返回 STATUS:0 CODE:120
|
|