Skip to content

Commit 1c9f099

Browse files
authored
Merge pull request #338 from nasirkhan/update
Limit file types/ extensions
2 parents 9430a43 + be37318 commit 1c9f099

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

config/file-manager.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,20 @@
9090
*
9191
* [] - no restrictions
9292
*/
93-
'allowFileTypes' => [],
93+
'allowFileTypes' => [
94+
'doc',
95+
'docx',
96+
'gif',
97+
'jpg',
98+
'jpeg',
99+
'pdf',
100+
'png',
101+
'ppt',
102+
'pptx',
103+
'xls',
104+
'xlsx',
105+
// 'zip',
106+
],
94107

95108
/**
96109
* Show / Hide system files and folders.

0 commit comments

Comments
 (0)