1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 15:57:01 +02:00

Updates to $config->fileContentTypes

This commit is contained in:
Ryan Cramer
2020-01-29 05:58:59 -05:00
parent 20be0c7fd5
commit 2adf4b0707

View File

@@ -596,18 +596,24 @@ $config->contentTypes = array(
*/
$config->fileContentTypes = array(
'?' => '+application/octet-stream',
'txt' => '+text/plain',
'csv' => '+text/csv',
'pdf' => '+application/pdf',
'doc' => '+application/msword',
'docx' => '+application/msword',
'xls' => '+application/excel',
'xlsx' => '+application/excel',
'docx' => '+application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'xls' => '+application/vnd.ms-excel',
'xlsx' => '+application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'ppt' => '+application/vnd.ms-powerpoint',
'pptx' => '+application/vnd.openxmlformats-officedocument.presentationml.presentation',
'rtf' => '+application/rtf',
'gif' => 'image/gif',
'jpg' => 'image/jpeg',
'jpeg' => 'image/jpeg',
'png' => 'image/png',
'svg' => 'image/svg+xml',
'webp' => 'image/webp'
'webp' => 'image/webp',
'zip' => '+application/zip',
'mp3' => 'audio/mpeg',
);