/editor/uploads
POSTAccess check: auth_require_login_and_upload_rate_limit
Handles a single multipart image/video/audio upload from any exorex-editor-field instance in the plugin. Exactly one file is expected per request (matching the editor's uploadMedia prop, which uploads one file at a time), so only the first entry in the files param is used.
Handler: cb_create_upload()
| Parameter | Type | Required | Default or allowed values |
|---|---|---|---|
| target_type | string | — | — |
curl -X POST -u "user:application-password" "https://example.com/wp-json/davo/v1/editor/uploads"src/domains/editor/routes.php:47