# observe\_media\_identify\_file/2

Source: https://zotonic.com/docs/1533/observe_media_identify_file-2

URI: https://zotonic.com/id/1533

Language: en



Try to identify a file, returning a map with file properties.

Type:

[first](/id/doc_developerguide_notifications#notification-first)

Return:

map with binary keys, especially `<<"mime">>`, `<<"width">>`, `<<"height">>`, `<<"orientation">>`

`#media_identify_file{}` properties:

- filename: `file:filename_all()`
- original\_filename: `binary`
- extension: `binary`

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1533?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1533?language=en>)
