Skip to content
Devix Open Source

Attach some files

Drop them, paste a screenshot, or pick them. The ones that break a rule stay in the list and say which one.

Live preview
<div class="demo demo--wide">
  <form id="form">
    <label class="demo-label" for="docs">Attachments</label>
    <input id="docs" name="docs[]" type="file">
  </form>
  <div class="demo-row">
    <button class="demo-btn demo-btn--ghost" id="good">Add a photo</button>
    <button class="demo-btn demo-btn--ghost" id="big">Add one that is too big</button>
    <button class="demo-btn demo-btn--ghost" id="wrong">Add the wrong kind</button>
  </div>
  <p class="demo-hint">Nothing leaves your browser: there is no server here, so the files stay in the
    real file input — which is exactly what happens when you leave <code>url</code> out.</p>
  <p class="demo-out" id="out"></p>
</div>