mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT Added more known file extensions (tiff, js, html, css, ico) to File->getFileType()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66320 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
55dbe2bf52
commit
5e3726ff43
@ -480,6 +480,8 @@ class File extends DataObject {
|
||||
'jpg' => 'JPEG image - good for photos',
|
||||
'jpeg' => 'JPEG image - good for photos',
|
||||
'png' => 'PNG image - good general-purpose format',
|
||||
'ico' => 'Icon image',
|
||||
'tiff' => 'Tagged image format',
|
||||
'doc' => 'Word document',
|
||||
'xls' => 'Excel spreadsheet',
|
||||
'zip' => 'ZIP compressed file',
|
||||
@ -490,7 +492,11 @@ class File extends DataObject {
|
||||
'wav' => 'WAV audo file',
|
||||
'avi' => 'AVI video file',
|
||||
'mpg' => 'MPEG video file',
|
||||
'mpeg' => 'MPEG video file'
|
||||
'mpeg' => 'MPEG video file',
|
||||
'js' => 'Javascript file',
|
||||
'css' => 'CSS file',
|
||||
'html' => 'HTML file',
|
||||
'htm' => 'HTML file'
|
||||
);
|
||||
|
||||
$ext = $this->getExtension();
|
||||
|
Loading…
Reference in New Issue
Block a user