Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picker images search all files with .jpg (images) #18

Open
pdomkar opened this issue Feb 29, 2016 · 4 comments
Open

Picker images search all files with .jpg (images) #18

pdomkar opened this issue Feb 29, 2016 · 4 comments

Comments

@pdomkar
Copy link

pdomkar commented Feb 29, 2016

I want use FinderJs for pick/choose image in app in FirefoxOS. But i dont understand how i can find all files of images type(jpg) If I understand(I find here:http://stackoverflow.com/questions/23527190/file-picker-on-firefox-os and on this github) its depend on argument searchterm: finder.search(searchterm);. I try "." but result in debug was empty or searchComplete Array [ ".", 0 ] If I try search exist image (in firefox profile fake-card) How i show/write all images in device?
Tahnks

@kaustavdm
Copy link
Contributor

You need to specify some more information in the search term. FinderJS does not support wildcards. For example:

var searchterm = ".jpg"
finder.search(searchterm);

@pdomkar
Copy link
Author

pdomkar commented Mar 3, 2016

Yea i tried it, but it dont work.
I have this code:
var finder = new Applait.Finder({ type: "sdcard", caseSensitive: false }); finder.search(".jpg"); finder.on("searchBegin", function (needle) { console.log("SearchBegin"); }); finder.on("fileFound", function (file, fileinfo, storageName) { console.log("Found file " + fileinfo.name + " at " + fileinfo.path + " in " + storageName, file); });
And I have images on sdcard with *.jpg but it don't write any text to console.

@kaustavdm
Copy link
Contributor

@pdomkar Quick check:

  • What version of Firefox OS are you using?
  • Do you have permissions set up in the app manifest?

No clue if that does not work.

Also, with the move to remove non-standard APIs in B2G, we may not support FinderJS in near future.

@pdomkar
Copy link
Author

pdomkar commented Mar 6, 2016

I use Firefox OS 2.2 (in simulator in Firefox IDE)
Yes, I have set up access to sdcard and pictures.

Sorry, my Englis is not great.
I understood it well, that is possiple that you dont support FinderJS in Firefox OS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants