Forms

File upload

This is the input's helper text.
Fullscreen
<div class="ecl-form-group ecl-form-group--file-upload"><label class="ecl-form-label" for="file-upload-id">Label</label>
  <div class="ecl-help-block">This is the input&#x27;s helper text.</div><input type="file" id="file-upload-id"
    name="file-upload-name" class="ecl-file-upload" />
</div>

Try it yourself on the playground

Playground

Disabled

This is the input's helper text.
Fullscreen
<div class="ecl-form-group ecl-form-group--file-upload"><label class="ecl-form-label ecl-form-label--disabled"
    for="file-upload-id-2">Label</label>
  <div class="ecl-help-block ecl-help-block--disabled">This is the input&#x27;s helper text.</div><input type="file"
    id="file-upload-id-2" name="file-upload-name" class="ecl-file-upload" disabled="" />
</div>

Try it yourself on the playground

Playground

With error

This is the input's helper text.
Fullscreen
<div class="ecl-form-group ecl-form-group--file-upload"><label class="ecl-form-label ecl-form-label--invalid"
    for="file-upload-id-3">Label</label>
  <div class="ecl-help-block">This is the input&#x27;s helper text.</div>
  <div class="ecl-feedback-message">This is the error message</div><input type="file" id="file-upload-id-3"
    name="file-upload-name" class="ecl-file-upload ecl-file-upload--invalid" />
</div>

Try it yourself on the playground

Playground

Required

This is the input's helper text.
Fullscreen
<div class="ecl-form-group ecl-form-group--file-upload"><label class="ecl-form-label" for="file-upload-id-4">Label<span
      class="ecl-form-label__required">*</span></label>
  <div class="ecl-help-block">This is the input&#x27;s helper text.</div><input type="file" id="file-upload-id-4"
    name="file-upload-name" class="ecl-file-upload" required="" />
</div>

Try it yourself on the playground

Playground

Optional

This is the input's helper text.
Fullscreen
<div class="ecl-form-group ecl-form-group--file-upload"><label class="ecl-form-label" for="file-upload-id-5">Label<span
      class="ecl-form-label__optional"> (optional)</span></label>
  <div class="ecl-help-block">This is the input&#x27;s helper text.</div><input type="file" id="file-upload-id-5"
    name="file-upload-name" class="ecl-file-upload" />
</div>

Try it yourself on the playground

Playground