Skip to content Skip to sidebar Skip to footer

Accessing A Folder To List/play Clips One By One

I just want to know if there is an object to access a folder path which includes list of clips in javascript. Which object I should use to list clips in a folder? Actually I can't

Solution 1:

JavaScript/Ecmascript cannot see the local filesystem. If it could then we'd have web pages sniffing all of our files without our consent.


Solution 2:

JavaScript doesn't get to see the user's file system. That'd be a huge security problem for everyone everywhere. If you're referring to the server's file system then you probably already have a better language like php that can list the directory contents and dynamically generate the JS before it is sent to the browser.


Post a Comment for "Accessing A Folder To List/play Clips One By One"