/    Sign up×
Community /Pin to ProfileBookmark

Can Javascript search a client-side directory?

Hi. I am new to this forum and to Javascript. I have used WebDeveloper in the past (under a different email that is no longer valid) and have always had great help from the users. I have a couple of months worth of Javascropt/jQuery experience.

This time, I have a project for work where we want to search a certain directory on our computer for images (png, jpg, gif) that have a matching tag and/or similar name to what the user enters in the search field. This way we can re-use these images instead of creating new ones.

I am thinking there is a way to do this using Javascript/jQuery, but after a full day of searching online for some similar solutions, haven’t been able to find anything. I want to do something that is similar to iconfinder.com. I don’t need all the bells and whistles yet, just the basics of how to get started.

Any advice and information would be greatly appreciated and a great JS learning experience for me!

Thank you in advance!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@rnd_meFeb 09.2012 — you have to select them in a <input type='file' />, then you can display them by size/date/type/etc. if you want to show thumbnails, you can loop through each file and grab it's data using a FileReader and setting an <img> to the filereader's base64/dataURL output.
×

Success!

Help @galloe71 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...