diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-04-05 23:18:44 +0200 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-04-05 23:18:44 +0200 |
commit | 96c99125da5fe74d4a8fa329869cca7f775805cf (patch) | |
tree | 6bfb2ea45d3e0773120a5a31dd388ba3da9ca0f7 /files | |
parent | fe3d3be399f7b64b3f81c4f8fcd932b2d810ee45 (diff) | |
download | nextcloud-server-96c99125da5fe74d4a8fa329869cca7f775805cf.tar.gz nextcloud-server-96c99125da5fe74d4a8fa329869cca7f775805cf.zip |
mimetype filter for filepicker
Diffstat (limited to 'files')
-rw-r--r-- | files/ajax/rawlist.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/files/ajax/rawlist.php b/files/ajax/rawlist.php index 88ba48a6c48..e02c5b62733 100644 --- a/files/ajax/rawlist.php +++ b/files/ajax/rawlist.php @@ -11,10 +11,11 @@ OC_JSON::checkLoggedIn(); // Load the files $dir = isset( $_GET['dir'] ) ? $_GET['dir'] : ''; +$mimetype = isset($_GET['mimetype']) ? $_GET['mimetype'] : ''; // make filelist $files = array(); -foreach( OC_Files::getdirectorycontent( $dir ) as $i ){ +foreach( OC_Files::getdirectorycontent( $dir, $mimetype ) as $i ){ $i["date"] = OC_Util::formatDate($i["mtime"] ); $i['mimetype_icon'] = $i['type'] == 'dir' ? mimetype_icon('dir'): mimetype_icon($i['mimetype']); $files[] = $i; |