Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I Read folder images and display inside html?

Tags:

javascript

I would like display some images inside html page(offLine) using JS. I have a folder with an index.html and a folder called "images" with JPG inside. If I have 10 images, display 10, if I have 3 display 3 inside html Is it possible do this? I tried lots of tutorials but unsuccessfully. Regards, Fernando.

like image 208
FeAlmeida76 Avatar asked Dec 10 '25 19:12

FeAlmeida76


1 Answers

I think you can't browse read file from js on your computer. However you can browse file using FileReader API of HTML5.

like image 162
Hemant Manwani Avatar answered Dec 12 '25 11:12

Hemant Manwani