Smart Poi 3.0.0
WiFi Connected LED POV Poi
Loading...
Searching...
No Matches
getContentType

Determines the MIME content type for a given file.

Determines the MIME content type for a given file.Returns the MIME content type based on the file extension. Supports common file types such as HTML, CSS, JavaScript, images, and archives.

Parameters
filenameThe name of the file to determine the content type for.
Returns
The MIME content type as a string.
Note
This function is used to determine the content type of files served by the web server.
If the "download" argument is present, returns "application/octet-stream" to force download.
Defaults to "text/plain" for unknown file types. ("index.html") returns "text/html"