Skip over navigation

Roxen Interactive RXML Help


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



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'/>