observe_media_upload_rsc_props/3

Notification that a medium file has been uploaded. This is the moment to change resource properties, modify the file etc. The folded accumulator is the map with updated resource properties.

Type:

foldl

Return:

modified resource properties map

#media_upload_rsc_props{} properties:

  • id: m_rsc:resource_id()|insert_rsc
  • mime: binary
  • archive_file: unknown
  • options: list
  • medium: z_media_identify:media_info()

Edit on GitHub

Observed by

Modules

mod_audio

Adds support for viewing and handling audio medium items.

Modules

mod_media_exif

When uploading a file, this module extracts properties from the uploaded media and sets them in the resource.