Server side File Selector using Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ZeeshanKhan
    New Member
    • Mar 2014
    • 1

    Server side File Selector using Javascript

    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
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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.

    Comment

    Working...