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" } ] } ]}
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.