docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 5.0Web Developer ManualProgramming Tags
Copyright © 2012, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

<cache>
<?cdata ?>
<cgi>
<clear-session>
<combine-path>
<crypt>
<debug>
<dice>
<eval>
<force-session-id>
<fsize>
<gauge>
<guess-content-type>
<maketag>
<nocache>
<nooutput>
<noparse>
<?noparse ?>
<page-size>
<?perl ?>
<?pike ?>
<servlet>
<session>
<set-max-cache>
<trace>
<writefile>
<xml-rpc-call>

<guess-content-type/>

Provided by module: Tags: RXML tags

Tries to find a content type from content, filename or file path. Either "content" or "filename" attributes must be supplied.


Attributes

content="string"

Guess the content type from the content. This function is currently only capable of recognizing several common image formats. If the content format isn't recognized then the fallback content type in the Content Types module is returned. That type is "application/octet-stream" by default.

<guess-content-type content='&form.image;'/>

filename="{filename, path}"

The tag makes its guess from the filename suffix, but you may provide a full path for convenience. If you want it to verify that the file is an image by its file content use the "content" attribute instead.

<guess-content-type filename='/foo/bar.jpg'/>
image/jpeg