Skip to main content
Smart action If you set an input field as an array of strings ([‘String’]), you can use the file picker to upload several files at once. The following example shows you how to define an action allowing for the upload of several files. In your forest/your-model.js file, add the following:
multipleDocumentPath: {
      type: DataTypes.ARRAY(DataTypes.STRING),
    },
multipleDocumentPath: [String];
💡 In order to be able to load several files that may be heavy, you will need to edit your app.js file as explained here.