# How to upload multiple files with smart actions?

**URL:** <https://community.forestadmin.com/t/how-to-upload-multiple-files-with-smart-actions/668>\
**Category:** Help me!\
**Tags:** howtos\
**Created:** [July 15, 2020, 3:21pm UTC](https://community.forestadmin.com/t/how-to-upload-multiple-files-with-smart-actions/668 "2020-07-15T15:21:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JuP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/jup/32/304_2.png) [@JuP](https://community.forestadmin.com/u/JuP)\
**Post date:** [July 15, 2020, 3:21pm UTC](https://community.forestadmin.com/t/how-to-upload-multiple-files-with-smart-actions/668/1 "2020-07-15T15:21:59Z")

</div>

Hello there,

I was wondering if there is a way to configure a smart action, allowing us to upload multiple file at a time.  
We have this already in Forest docs, which allows us to perform a single file upload:

```javascript
{
	field: 'file',
	type: 'File',
	isRequired: true
}

```

Would be nice to have similar template but for several files:

```javascript
{
  field: 'files',
  type: 'Files'
}

```

Thanks for the feedback,

Julien

---

<div class="post-metadata">

**Author:** ![louis](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/louis/32/4_2.png) [@louis](https://community.forestadmin.com/u/louis)\
**Post date:** [July 15, 2020, 3:26pm UTC](https://community.forestadmin.com/t/how-to-upload-multiple-files-with-smart-actions/668/2 "2020-07-15T15:26:25Z")

</div>

Hi @JuP 👋, welcome to our community!

You can upload multiple files on a smart action form by defining your field as an array of strings + use the file picker widget. See ex below:

```javascript
  actions: [{
    name: 'Upload files',
    fields: [{
      field: 'files',
      type: ['String'],
      widget: 'file picker'
    }]
  }],

```

This way, the end-user can upload as many files as they want!

---

<div class="post-metadata">

**Author:** ![JuP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/jup/32/304_2.png) [@JuP](https://community.forestadmin.com/u/JuP)\
**Post date:** [July 15, 2020, 3:40pm UTC](https://community.forestadmin.com/t/how-to-upload-multiple-files-with-smart-actions/668/3 "2020-07-15T15:40:00Z")

</div>

Works perfectly thanks ! 🙏
