cr_filename_to_mime_type (public)
cr_filename_to_mime_type [ -create ] filename
Defined in packages/acs-content-repository/tcl/revision-procs.tcl
given a filename, returns the mime type. If the -create flag is given the mime type will be created; this assumes there is some other way such as ns_guesstype to find the filename
- Switches:
- -create (optional, boolean)
- flag whether to create the mime type the routine picks for filename
- Parameters:
- filename (required)
- the filename to try to guess a mime type for (the file need not exist, the routine does not attempt to access the file in any way)
- Returns:
- mimetype (or */* of unknown)
- Author:
- Jeff Davis <davis@xarg.net>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- auth_authenticate