View Full Version : Display all files from folder

25 Feb 2010, 1:18 AM
I have a problem. I need to display all the files names from one folder into a grid. Pls can anyone help.

25 Feb 2010, 4:11 AM
This might be a bit much for your requirements, but it should give you a starting point: http://www.extjs.com/forum/showthread.php?t=9175

26 Feb 2010, 4:31 AM
I created the grid but now i have to make get-files.php to get the files from folder and I don't know how to combine it with :
var store = new Ext.data.JsonStore({
url: 'get-files.php',
root: 'uploads/',
fields: ['name', 'url', {name:'size', type: 'float'}, {name:'lastmod', type:'date', dateFormat:'timestamp'}]