SingleUpload

Upload control for one file that posts to a URL, with optional accepted file types and a title template

Live preview

Open in new tab ↗

Configuration:

  • url {String} a target URL for the uploading (default: /api/upload/)
  • accept {String} (optional) can contain a content-type frow browsing files e.g. image/*
  • label {String} (optional) changes a current innerHTML (default: innerHTML)
  • title {String} Tangular template for rendering a title of attachment (default: {{ name }})
  • disabled {Boolean} disables the component
  • remap {String} (optional) a remap function (default: null), example: value.length ? value[0] : null

Friendly components:

This component works with loading (when the file is uploading) and message (when server throws an error) component.

More UI components

Browse all 348