1

I am creating a HTML page where I need to count of files present in the specific folder in same project package, I tried to write the code in javascript but have not succeeded yet. Most of the question threads mention about "ActiveXObject" to be used but that itself does not work for me. Reference: JavaScript: Read files in folder Can anyone help me in achieving this? Please Suggest any Idea if this can't be achieved only by javascript lang.

2
  • 2
    Clientside JavaScript is not build to be able to access Serverside files. You could make an AJAX call to to a serverside file, which in turn could figure out how many files where in a specific folder. Commented Dec 23, 2016 at 7:17
  • Please share what you have done yet Commented Dec 23, 2016 at 7:28

1 Answer 1

4

HTML + JavaScript in your case is frontend technologies unless you use javascript as backend(nodejs) you won't be able to read project folder contents.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.