Skip to content

Commit c26368d

Browse files
committed
Added support for doc, docx, and rtf file types
1 parent d869c64 commit c26368d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getConfigTreeBuilder()
4343
->info('mime-types configuration')
4444
->addDefaultsIfNotSet()
4545
->children()
46-
->scalarNode('extensions')->defaultValue('PNG, GIF, JPG, PDF, CSV, XLS, or XLSX')->end()
46+
->scalarNode('extensions')->defaultValue('PNG, GIF, JPG, PDF, CSV, RTF, DOC, DOCX, XLS, or XLSX')->end()
4747
->scalarNode('types')
4848
->defaultValue([
4949
'image/png',
@@ -53,6 +53,9 @@ public function getConfigTreeBuilder()
5353
'application/pdf',
5454
'text/plain',
5555
'text/csv',
56+
'application/rtf',
57+
'application/msword',
58+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
5659
'application/vnd.ms-excel',
5760
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
5861
])

0 commit comments

Comments
 (0)