By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,040 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,040 IT Pros & Developers. It's quick & easy.

Server side File Selector using Javascript

P: 1
My files and folders are on the server side under the folder image_depot and then i want to make a administrative html page to select the files in a tree fashion means multiple selection by expnding and compressing + and -. and finally i need an array of selected file locations with reference to image_depot. Is this possible with javascript.
I know Javascript can not directly access the server files but i have node.js (ExpressJS) running on server end so i can provide the file locations to the client using node.js but in client end i need a tree structure and multiple selection and array.
I dont want to upload the file just want to have the locations of selection in array
Mar 6 '14 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
I think there are some JavaScript tree libraries out there. as long as you provide JS with the file/directory names that shouldn’t be a problem.

PS. just put the directory structure in a nested list, then JS can do formatting and expanding/collapsing quite easily.
Mar 6 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.