SR054

Severity: error

Summary: upload field is not listed in the endpoint input array

What this means

An endpoint has an upload: block, but the field named by upload.field does not appear in the endpoint’s input: list. The upload field must be declared in input so it is included in request parsing and validation.

Example that triggers this

endpoints:
  upload_file:
    method: POST
    path: /assets/upload
    input: []
    upload:
      field: file
      storage: s3
      max_size: 5mb

How to fix it

Add the upload field to the input array:

input: [file]

Back to top

Shaperail documentation lives in the same repository as the framework so every release has versioned instructions. See the latest release for the most recent version.

This site uses Just the Docs, a documentation theme for Jekyll.