You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then instead of contributing a new widget in the rjsf upstream project, we can follow the pattern that we currently have for our local JSON editor, and inject it ourselves during form instantiation:
This would allow users to store relatively small files as attributes on records instead of using attachments.
Typical use-case is to store the thumbnail of the file that is attached on the record.
In order to do this, we will need:
<input type="file">
into base64The record schema would be:
And the collection UI schema:
Then instead of contributing a new widget in the rjsf upstream project, we can follow the pattern that we currently have for our local JSON editor, and inject it ourselves during form instantiation:
kinto-admin/src/components/JSONEditor.tsx
Lines 12 to 33 in 349a374
kinto-admin/src/components/group/GroupForm.tsx
Lines 44 to 48 in 349a374
In this case we would replace occurrences of
base64input
by instances of our base64 widget.See also:
The text was updated successfully, but these errors were encountered: