# File Picker widget options in a Smart Action

**URL:** <https://community.forestadmin.com/t/file-picker-widget-options-in-a-smart-action/4087>\
**Category:** Help me!\
**Created:** [January 26, 2022, 10:15am UTC](https://community.forestadmin.com/t/file-picker-widget-options-in-a-smart-action/4087 "2022-01-26T10:15:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Houssam](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@Houssam](https://community.forestadmin.com/u/Houssam)\
**Post date:** [January 26, 2022, 10:15am UTC](https://community.forestadmin.com/t/file-picker-widget-options-in-a-smart-action/4087/1 "2022-01-26T10:15:43Z")

</div>

## Feature impacted

File picker widget in a smart action

## Observed behavior

No option to specify allowed file extensions

## Expected behavior

Option to specify allowed file extensions

## Context

I noticed that the file picker widget can be configured from the layout editor to specify a list of allowed file extensions:

 ![Screenshot 2022-01-26 at 11.11.38 AM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/d/d5a6140b5eb9d7e4dbbf70fb9dfa94a0a9f48f26.png)

But when the file picker is used in a smart action, this cannot be customized from the layout editor, nor from the field definition in the smart action (programmatically).  
Ideally it would be nice to be able to specify the file extensions programatically as I would like to be able to dynamically change the allowed extensions (based on a property of the entry) using the load hook.  
I am wondering if this is an existing feature because I couldn’t find anything related to that in the documentation.

---

<div class="post-metadata">

**Author:** ![Sliman\_Medini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sliman_medini/32/19_2.png) [@Sliman\_Medini](https://community.forestadmin.com/u/Sliman_Medini)\
**Post date:** [January 26, 2022, 2:14pm UTC](https://community.forestadmin.com/t/file-picker-widget-options-in-a-smart-action/4087/2 "2022-01-26T14:14:13Z")

</div>

Hello @Houssam,

Thank you for this feedback.

You are right, it’s today impossible to define the allowed file types programmatically using the load hook.  
I am creating a product board ticket in order to ask it.

Regards
