Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to create this web-page that has access to the file-system and demonstrates the structure of my folders in a tree path panel, while after clicking on a file, you van preview the file on the square space on the left side in the same page.
I was trying to find a way to access my filesystem using JavaScript and display it as i mentioned but i couldn't.
i have a prototype for this as an image but looks like i can't upload it here.
Help!

What I have tried:

I have tried creating the panel using tree-path in JavaScript, but I didn't find the way to access the file system files.
Posted
Updated 27-Dec-17 17:15pm

1 solution

Quote:
I have tried creating the panel using tree-path in JavaScript, but I didn't find the way to access the file system files.

By principle, webapps and Javascript don't have access to client file system because of a silly reason named Security.
What would you think if any website had access to your file system?
 
Share this answer
 
Comments
Member 11849246 27-Dec-17 23:29pm    
Sorry for not explaining well, by that i meant dropping a folder from the file system and display that folder structure with the files included in the webpage

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900