Click here to Skip to main content
14,773,490 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Thanks in advance...

To get the data from the local directory and show that data in randomly using javascript (i.e: to show the video as random in user interface using javascript) is it possible to get the data from the local directory (i.e The Index.php file location) is it possible please tell be and how to do that

What I have tried:

Thanks in advance...

To get the data from the local directory and show that data in randomly using javascript (i.e: to show the video as random in user interface using javascript) is it possible to get the data from the local directory (i.e The Index.php file location) is it possible please tell be and how to do that
Posted
Updated 22-Aug-18 21:43pm

1 solution

Quote:
Is it possible..? Using javascript to get a file from a local directory

No, webapps don't have access to client file system, that is for security reasons, otherwise any web malware would have access to all your files.
All what can be done is opening a file open window where user say if it allow access to a file, but user choose which file, and only if a want.
So you can't play a bunch of videos from local storage.
   

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