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.
-
2Clientside 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.Emil S. Jørgensen– Emil S. Jørgensen2016-12-23 07:17:33 +00:00Commented Dec 23, 2016 at 7:17
-
Please share what you have done yetmuneebShabbir– muneebShabbir2016-12-23 07:28:27 +00:00Commented Dec 23, 2016 at 7:28
Add a comment
|