我正在使用 Trigger.io 开发应用程序。
file.getImage
从图库或相机(在 Android 上)使用并选择图像后,我收到此错误消息(使用 trigger.io 工具包运行应用程序)。
W Forge : Unhandled intent result, should have been handled by Forge.
该应用程序会立即崩溃并重新启动。
相关代码:
forge.file.getImage({}, function(file) {
forge.request.ajax({
type: 'POST',
url: "http://example.com/upload/photo",
files: [file],
success: function(e) {
console.log('success');
console.log(JSON.stringify(e));
},
error: function(e) {
console.log('failure');
console.log(JSON.stringify(e));
}
});
这个错误是什么意思?