On Retool, I'm making multiple files input, then, I tried the example of multiple files input from this website
This is the JSON Schema of the multiple files input from
CodePudding user response:
You can choose multiple files with your JSON Schema:
{
"title": "Files",
"type": "object",
"properties": {
"files": {
"type": "array",
"title": "Multiple files",
"items": {
"type": "string",
"format": "data-url"
}
},
}
}
First, click on "Choose Files":
Second, hold "Ctrl" or "Shift", then, choose multiple files. *Don't release "Ctrl" or "Shift" until you finish choosing them. In the example below, I choose "clover.jpg", "rosemary.jpg" and "sunflower.jpg":
Finally, You can choose 3 files as listed under "Choose Files":
CodePudding user response:
There is another way to choose multiple files with this JSON Schema:
{
"title": "Files",
"type": "object",
"properties": {
"files": {
"type": "array",
"title": "Multiple files",
"items": {
"properties": {
"file": {
"type": "string",
"title": "File",
"format": "data-url",
}
}
}
}
}
}
Click on "+" to add single file input and "