|
@@ -174,6 +174,7 @@ function uploadFiles(choosePromise, { onChooseFile, onUploadProgress }) {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
function chooseAndUploadFile(opts = { type: 'all' }) {
|
|
function chooseAndUploadFile(opts = { type: 'all' }) {
|
|
|
|
+ opts.sourceType = ['album','camera']
|
|
if (opts.type === 'image') {
|
|
if (opts.type === 'image') {
|
|
return uploadFiles(chooseImage(opts), opts);
|
|
return uploadFiles(chooseImage(opts), opts);
|
|
}
|
|
}
|