GOVUK File upload

An example of the govuk file upload component.




<div class="govuk-form-group">
  <label class="govuk-label" for="file-upload-1">
  Upload a file
</label>


  <input class="govuk-file-upload" id="file-upload-1" name="file-upload-1" type="file">
</div>

{% from "govuk_frontend_jinja/components/file-upload/macro.html" import govukFileUpload -%}
{{ govukFileUpload({
    "id": "file-upload-1",
    "name": "file-upload-1",
    "label": {
      "text": "Upload a file"
    }
}) }}