11-20-2012 09:39 PM
When I try to pick a file on my DevAlpha A device containing an apostrophe in filename, for example: "Gettin' Over You (Featuring Fergie & LMFAO).mp3" file picker return syntax error : At least one digit must occur after a decimal point.
I would like to ask is this possible to fix this error?
Thanks in advance.
Solved! Go to Solution.
11-21-2012 11:10 AM
How are you trying to pick it? When I do the same using the file picker app, everything seems fine. Are you invoking it with that as an argument to save as?
11-21-2012 12:33 PM
Hi erikjohnzon.
Thank you for the answer and sorry for insufficient data.
This is the code:
function invokeFilePicker() {
var details = {
mode: blackberry.invoke.card.FILEPICKER_MODE_PICKER,
viewMode: blackberry.invoke.card.FILEPICKER_VIEWER_MODE_LIST
};
blackberry.invoke.card.invokeFilePicker(details, function (path) {
console.log("saved "+ path);
},
function (reason) {
console.log("cancelled " + reason);
},
function (error) {
if (error) {
console.log("invoke error "+ error);
} else {
console.log("invoke success " );
}
}
);
}So, when I try to pick a file named: Gettin Over You (Featuring Fergie & LMFAO).mp3 all works fine.
Console log is:
invoke success
saved /accounts/1000/shared/music/Test/Gettin Over You (Featuring Fergie & LMFAO).mp3
However when I try to pick a file: Gettin' Over You (Featuring Fergie & LMFAO).mp3 instead of value of path I can see only syntax error in console window:
invoke success
SyntaxError: At least one digit must occur after a decimal point
11-21-2012 02:20 PM
Nice job, you have found an error in our implementation of the file picker. I have confirmed that it is an issue with what we are doing. Apparently our encoder is not handling the single quotes properly. I will file an issue on our end and let you know how it goes.
You can track it here: https://github.com/blackberry/BB10-WebWorks-Framew
Thanks so much for letting us know. You can track the progress throught that issue.
04-02-2013 10:28 AM
I checked in my DA-B with the latest OS version (10.0.10.648) and now bug is fixed.
Thank you BB.