-3

A folder contains only images and videos, When I click on a button with OnClickListener(), then I want to open that folder with gallery or file manager, and show images and videos that are saved in that folder.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
romil
  • 62
  • 1
  • 6

1 Answers1

0

You can use AJAX for that event, that will fetch the following code (this is for images):

path = "media/images/iconized/";
$images = glob($dirname."*.png");

foreach($images as $image) {
    echo '<img src="'.$image.'" />;
}

or you can use this PLUGIN https://cksource.com/ckfinder/demo

Ivan Orpilla
  • 13
  • 1
  • 4