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