Documentation

GetFileType

function 
GetFileType(
 path
);

The function returns file type by its specified path. The file types are as follows:

  • IMAGE for jpg, jpeg, gif, bmp, png;
  • FLASH for swf;
  • SOURCE for html, htm, asp, aspx, phtml, php, php3, php4, php5, php6, shtml, sql, txt, inc, js, vbs, tpl, css, shtm;
  • UNKNOWN for others.

Function parameters

Parameter Description
path Path to file


© «Bitrix24», 2001-2024
Up