getMimeType

String sutil.getMimeType ( String path )

Description

Get the mime-type of a local file.

Parameters

  • path File path to the local file, as a string.

Return Values

Returns the mime-type of the file, as a string.

Change Log

Version Description
5.0 Added for all editions.

Examples

Get File Mime Type

 // Get mime-type
 sutil.getMimeType( "c:/image/puppy.gif" );