API docs     >     Files     >     Filetypes

Filetypes->getByCode

Description

getByCode ( $code )
Gets a Filetype (by code)

Parameters

$code
string
Filetype code

Returns

array
Array containing information about the Filetype
  1. Array(
  2.     [0] => Array(
  3.         [ID] => 3
  4.         [OBJECTID] => 2
  5.         [READONLY] => 0
  6.         [FOLDER] => 0
  7.         [PROCESSOR] => GD
  8.         [IDENTIFIER] => IMG
  9.         [COLOR] => purple
  10.         [CODE] => IMG
  11.         [NAME] => Image
  12.         [EXTENSIONS] => jpg,jpeg,tif,tiff,png,gif,bmp
  13.     )
  14. )