Skip to content

Kirby 4.5.0

GET /api/pages/:id/files/:filename

Retrieve a file

Query parameters

Parameter Example Description
pretty pretty=true|null Pretty prints the result. Only useful for debugging.
select select=filename,niceSize|null Defines the fields that will be returned for the file.

File fields

The following fields are available in the file model and can be fetched with the select parameter:

  • blueprint
  • content
  • dimensions
  • dragText
  • exists
  • extension
  • filename
  • id
  • link
  • mime
  • modified
  • name
  • next
  • nextWithTemplate
  • niceSize
  • options
  • panelImage
  • panelUrl
  • prev
  • prevWithTemplate
  • parent
  • parents
  • size
  • template
  • thumbs
  • type
  • url
  • uuid