Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7987171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:04:21+00:00 2026-06-04T12:04:21+00:00

As I have read, it is not easy for JavaScript to modify files on

  • 0

As I have read, it is not easy for JavaScript to modify files on client PC. I am working on a web based file manager and would need to know the following:

  • Can JavaScript list files and folder structure on a client PC?
  • Can JavaScript list files and folder structure on a server?

If your answer is no, that Java Scipt can not list files and folders say on client’s or server’s C:\ drive, than would CGI script be the only solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:04:23+00:00Added an answer on June 4, 2026 at 12:04 pm

    Browser JS reading client PC’s files: Depends

    For a security reason, you can’t access the files on the user’s PC without the user’s consent.

    That’s why the FileReader API is created around the file input box <input type="file"> and a drag-n-drop area since the whole idea is to "access the file with user’s consent". Without the user intentionally putting the file for access, you can’t access it at all.

    Server-side JS reading own server’s files: Yes

    As for server, if you meant access the server using server-JS (NodeJS or Rhino), yes you can (How else would it serve webpages anyway?).

    Browser JS reading own server’s files: Depends

    Accessing the server from the browser using JS works if you have an API to read files from it.

    Browser JS reading other server’s files: Yes, with a catch

    To access other server’s files without some API, you could resort to creating a web scraper or a web-spider that runs server-side (since browser can’t cross domains due to the same origin policy) and have an API exposed to your browser.

    However:

    • you can’t crawl to all files as some may be restricted from outside access.
    • the public appearance of the structure could be different from the internal structure, especially if the site uses segmented url scheme
    • sites using query strings to generate pages cannot be crawled easily due to the number of permutations it could make, thus some pages might be unreacheable.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an easy way to read settings from a (asp.net) web.config file using
I have read that viewstate is not there in asp.net MVC application. I am
I have read some posts on here about not mixing parameters when passing into
I have read this question but it's not quite what I was looking for.
I have read that ajax fileupload is not possible. But I want to upload
I have read that money_format is not available on windows, and on some Linux
I have read in a lot of places that assembly language is not usually
I have read the MSDN article on MVVM and I am not really convinced.
I have read nearly every single post about the activity not found to handle
I have read many questions about the facebook login but until not I didnt

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.