You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
Describe the bug
After making a photo, the number of selected files increases by 2 instead of one.
To Reproduce
Call openImagePicker({isNeedCamera: true, ....}), a list of files appear.
Make a photo and accept it
The number of files is increased by two.
Check dump of getResults method.
Expected behavior
A single file should be returned.
NativeScript Info(please run tns info): ‼ Update available for component nativescript. Your current version is 6.1.0 and the latest available version is 6.4.1. ‼ Update available for component tns-core-modules. Your current version is 6.2.0-next-2019-09-25-140422-01 and the latest available version is 6.4.2. ‼ Update available for component tns-android. Your current version is 6.1.2 and the latest available version is 6.4.1. ‼ Update available for component tns-ios. Your current version is 6.1.0 and the latest available version is 6.4.2.
Sample Code(please provide minimum code to reproduce problem):
`
let options = {
android: {
isCaptureMood: false, // if true then camera will open directly.
isNeedCamera: true,
maxNumberFiles: 10,
isNeedFolderList: true,
},
ios: {
isCaptureMood: false, // if true then camera will open directly.
videoMaximumDuration: 10,
}
};
let mediafilepicker = new Mediafilepicker();
mediafilepicker.openImagePicker(options);
mediafilepicker.on("getFiles", function (res) {
let results = res.object.get('results');
console.log(results);
...
`
Additional context
I've tried to reproduce this on the mobile phone and the number was increased by 3!
The text was updated successfully, but these errors were encountered:
The duplicated files have the same filename. Just solve it with own codes.
let results = await new Promise<any[]>((resolve, reject) => {
this.mediafilepicker.on("getFiles", function (res) {
let results = res.object.get('results');
resolve(results);
})
results = _.map(_.groupBy(results, r => r.file), v => v[0]);
Will this code fix the files count? By the way- this bug was the last straw for me. After that I've migrated to Xamarin. There are much less cryptic bugs in there
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
After making a photo, the number of selected files increases by 2 instead of one.
To Reproduce
openImagePicker({isNeedCamera: true, ....}),
a list of files appear.getResults
method.Expected behavior
A single file should be returned.
NativeScript Info(please run
tns info
):‼ Update available for component nativescript. Your current version is 6.1.0 and the latest available version is 6.4.1. ‼ Update available for component tns-core-modules. Your current version is 6.2.0-next-2019-09-25-140422-01 and the latest available version is 6.4.2. ‼ Update available for component tns-android. Your current version is 6.1.2 and the latest available version is 6.4.1. ‼ Update available for component tns-ios. Your current version is 6.1.0 and the latest available version is 6.4.2.
Sample Code(please provide minimum code to reproduce problem):
`
`
Additional context
I've tried to reproduce this on the mobile phone and the number was increased by 3!
The text was updated successfully, but these errors were encountered: