Skip to content

Commit

Permalink
Updating readme with notes on base64input field
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcottner committed Feb 12, 2025
1 parent 7c3e14b commit 504138f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Kinto-based systems.
- [Hacking on kinto-admin](#hacking-on-kinto-admin)
- [Development server](#development-server)
- [Tests](#tests)
- [Custom RJSF Fields](#Custom-RJSF-fields)
- [FAQ](#faq)
- [Browser support](#browser-support)
- [How to display a nested field value using the collection displayFields property?](#how-to-display-a-nested-field-value-using-the-collection-displayfields-property)
Expand Down Expand Up @@ -147,6 +148,37 @@ To run tests:
```
$ npm run test-all
```

## Custom RJSF fields
We have expanded the RJSF functionality with a base64 encoded file upload. It can be used by declaring a string field on a collection's JSON schema and specifying the base64input widget in the UI schema. Examples:

JSON schema:
```
{
"type": "object",
"properties": {
"b64example": {
"type": "string",
"title": "Base64 Upload",
"description": "Upload a small file here..."
}
}
}
```

UI schema:
```
{
"b64content": {
"ui:widget": "base64input"
},
"ui:order": [
"b64content"
]
}
```


## FAQ

### Browser support
Expand Down

0 comments on commit 504138f

Please sign in to comment.