PacemSnapshotElement
is the suggested webcomponent for managing camera captured snapshots.
The PacemSnapshotElement
can be included in an autogenerating form using the proper metadata.
In the following example, the url
attribute for a chunked upload is provided via the extra's uploadUrl
property.
It is important to say that the provided endpoint on the server-side is expected to obey an optionated schema, moreover the
resulting value is the string
yielded by the endpoint when the upload process comes to completion.
{ "props": [ { "prop": "thumbnail", "display": { "name": "Thumbnail (348x232)", "ui": "snapshot" }, "type": "string", "extra": { "width": 348, "height": 232, "quality": 0.8 }, "validators": [ { "type": "required", "errorMessage": "Required field" } ] } ]}