View definition

func ContentTypeByFilename

Defined in github.com/revel/revel/util.go

Description

Returns a MIME content type based on the filename's extension. If no appropriate one is found, returns "application/octet-stream" by default. Additionally, specifies the charset as UTF-8 for text/* types.

ContentTypeByFilename is referenced in 2 repositories

github.com/revel/revel github.com/leanote/leanote