---
agentTools:
  projectIndex: https://olympus.readme.io/llms.txt
---

# Upload

[block:code]
{
  "codes": [
    {
      "code": "<?php\n\n$tea_content = array(\n    array(\n        'type' => 'upload',\n        'title' => 'Upload',\n        'id' => 'simple_upload',\n        'description' => 'Simple description to upload panel',\n    ),\n);",
      "language": "php"
    }
  ]
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/Pv8IOSfWSlazu7W2Ddor_upload.png",
        "upload.png",
        "1232",
        "168",
        "#80b346",
        ""
      ]
    }
  ]
}
[/block]

[block:api-header]
{
  "type": "basic",
  "title": "Retrieve data"
}
[/block]

Using the `_get_option('simple_upload')` method, you'll get (with a `json_encode()` display):

[block:code]
{
  "codes": [
    {
      "code": "{\n    \"url\": \"http:\\/\\/your_complete_url\\/wp-content\\/uploads\\/img\\/teato-tiny.svg\",\n    \"id\": \"14\",\n    \"name\": \"teato-tiny\"\n}",
      "language": "json"
    }
  ]
}
[/block]