Skip to content
Newer
Older
100644 9 lines (8 sloc) 215 Bytes
5c6b80f AJAX upload in file dialog
Anatoliy authored
1 <?php
2 $files = array();
3 for ($dir = opendir('./files'); $file = readdir($dir);) {
4 if ($file{0} == '.') continue;
5 $files[] = "{path: '/wwg/my/files/$file', name: '$file'}";
6 }
7 echo '[' . join(',', $files) . ']';
8 ?>
Something went wrong with that request. Please try again.