1.1.6 • Published 4 months ago
@saekitominaga/customelements-input-file-preview v1.1.6
Show preview with <input type=file>
Demo
Examples
<input type="file" is="x-file-preview"
data-target-for="preview"
data-error-message='<strong class="error"><b>${name}</b> (${size} byte) cannot be previewed.</strong>'
data-max-size="1048576"
/>
<p id="preview"></p>