Home > other >  Make multiple files input (Retool)
Make multiple files input (Retool)

Time:10-26

On Retool, I'm making multiple files input, then, I tried the example of multiple files input from this website enter image description here

This is the JSON Schema of the multiple files input from enter image description here

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":

enter image description here

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":

enter image description here

Finally, You can choose 3 files as listed under "Choose Files":

enter image description here

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 "

  • Related