How to upload and use an asset
This guide shows you how to put a file in the asset library and point at it from your content.
1. Add the field to a layout
Two field types point at the library:
- An Asset field takes an image, a video, or a document.
- An HTML field takes a
.htmlfile.
Add one of them to a page layout or a step layout.
2. Choose a file
- Open the content entry.
- Click Choose file on the asset field. On a field that holds a value already, click Replace.
- Open the Upload tab to add a new file.
- Open the Library tab to use a file that is there already.
- Choose your asset.
The detail panel on the right shows the kind, the dimensions, the size, and the upload date.
3. Find an asset in a large library
The Library tab has three controls, and the server applies each one across the whole library:
- Search by name narrows the list by file name while you type.
- The type filter narrows the list to one media type. All types is the default.
- Sort orders the list by Name, Date created, or Date updated.
Click Load more at the bottom to read the next page of results.
API and MCP
You can also do this task with the Management API, the MCP server, or code that you send to picked_run.
| Task | GraphQL | MCP tool | Run |
|---|---|---|---|
| Add the field to a layout | contentModelUpdate | update_content_model | tools.update_content_model({ content_model_id, schema }) |
| Upload a file | assetUploadInit, assetCommit | init_asset_upload, commit_asset_upload | tools.init_asset_upload({ project_id, file_name, content_type }), tools.commit_asset_upload({ project_id, asset_id, version_id, file_name, storage_path }) |
| Find an asset in the library | assets | list_assets | tools.list_assets({ project_id }) |
| Choose the asset in an entry | contentEntryUpdate | update_content_entry | tools.update_content_entry({ content_entry_id, data }) |
Between the two calls, send the file in a PUT request to the URL that the first call gives.
The list_assets tool has no search, no type filter and no sort.
Related
- Asset library — the limits, the file types, and how Picked serves an uploaded file.
