Skip to content
Zotonic
  • Start
  • Guides
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Notifications
  • Reference
  • Backend developer
  • Media management
  • Notification
  • Query
  • Identifier

observe_media_identify_extension/2

Try to find a filename extension for a mime type (example: <<".jpg">>)

Type:

first

Return:

Extension (for example <<".png">>) or undefined

#media_identify_extension{} properties:

  • mime: binary
  • preferred: undefined|binary

Edit on GitHub

Related documentation

Notifications

observe_auth_identity_types/3

Return the list of identity types that allow somebody to logon and become an active user of the system. Defaults to [ username_pw ]. In the…

Notifications

observe_media_import_medium/2

Notification to import a medium record from external source. This is called for non-file medium records, for example embedded video. If the…

Models

media

Access to data about uploaded files and other media.

Notifications

observe_search_query/2

Map a custom search term to a #search_sql_term{} record.

Notifications

observe_survey_get_handlers/3

Fetch list of handlers for survey submits.

Notifications

observe_rsc_get/3

Resource is read, opportunity to add computed fields Used in a foldr with the read properties as accumulator.

Models

identity

The m_identity model manages usernames and other user identities. module#mod_authentication uses it to store and check salted passwords

Notifications

observe_media_viewer_consent/2

Optionally wrap HTML with external content so that it adheres to the cookie/privacy settings of the current site visitor. Typically called…

Notifications

observe_tkvstore_get/2

Get a value from the typed key/value store

GitHub © 2026 Zotonic