DEV Community

Discussion on: Is JavaScript able to read files from a directory ?

Collapse
 
malikasif293 profile image
MalikAsif293

I want to develop an image slider gallery picking images dynamicaly from a directory.

Collapse
 
joshx profile image
Jonas Scheffner

It's not possible to get direct access to the file system. That would be extremely unsafe. You could use an input to allow the user to select files but I don't think that's what you're looking for.