Skip to content

File Field

Ask for a different file after the server rejected the last one.

View template

The watermark must be a PNG under 1 MB.

Render aria-invalid and the error from your server. The browser cannot keep the rejected file, so the person chooses it again.

Use in your app

Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.

Page assets
<link rel="stylesheet" href="/mero.css">
<script defer src="/mero.js"></script>
Download library and examples ↓