How to get path from an uploaded file

Hello,

I have created a file upload section in user/blueprints/config/site.yaml as follows:

form:
  fields:
    content:
      fields:
        logo:
          type: file
          label: Logo
          destination: 'theme@:/images'
          filesize: 5
          accept:
          - image/*

In the user/config/site.yaml file the uploaded file details are stored as follows

logo:
  user/themes/mytheme/images/logo.png: 
    name: logo.png
    type: image/png
    size: 11045
    path: user/themes/mytheme/images/logo.png

I’ve scoured the docs and forums but i cant figure out the twig syntax to retrieve the uploaded file’s path.

Try (config.site.logo|first).path

Thank you. That works perfectly.