# Work with uploaded media

Source: https://zotonic.com/docs/2954/work-with-uploaded-media

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

Language: en

A media resource has ordinary content properties and information about its associated file. Use model#media to inspect and manipulate media through Zotonic's normal processing path.

A media resource has ordinary content properties and information about its associated file. Use <a href="/id/1284" class="doc-reference doc-reference-model"><code>model#media</code></a> to inspect and manipulate media through Zotonic's normal processing path.

Keep the archive file and generated previews separate in your reasoning. A missing preview can be a processing problem even when the original upload is present. Check the file's media type, processing status, and storage configuration before replacing the resource.

Use media APIs for replacement and deletion so derived files and notifications remain consistent. Do not construct archive filenames from titles. See [Display images with mediaclasses](/id/2945), [Configure persistent file storage](/id/2993), and [An uploaded image does not display](/id/3003).

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2954?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/2954?language=en>)
