Skip to content

Allowed extensions file types for uploads

robiso edited this page Dec 29, 2017 · 1 revision
$allowed = [
	'doc' => 'application/vnd.ms-word',
	'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
	'kdbx' => 'application/octet-stream',
	'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
	'odt' => 'application/vnd.oasis.opendocument.text',
	'ogg' => 'application/ogg',
	'pdf' => 'application/pdf',
	'ppt' => 'application/vnd.ms-powerpoint,
	'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
	'psd' => 'application/photoshop',
	'rar' => 'application/rar',
	'xls' => 'application/vnd.ms-excel',
	'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
	'zip' => 'application/zip',
	'm4a' => 'audio/mp4',
	'mp3' => 'audio/mpeg',
	'gif' => 'image/gif',
	'jpg' => 'image/jpeg',
	'ico' => 'image/x-icon',
	'png' => 'image/png',
	'svg' => 'image/svg+xml',
	'txt' => 'text/plain',
	'avi' => 'video/avi',
	'flv' => 'video/x-flv',
	'mkv' => 'video/x-matroska',
	'mov' => 'video/quicktime',
	'mp4' => 'video/mp4',
	'mpg' => 'video/mpeg',
	'ogv' => 'video/ogg',
	'webm' => 'video/webm',
	'wmv' => 'video/x-ms-wmv'
];
Clone this wiki locally