Allow file or directory picker APIs to be called without prior user gesture

Policy ID
FileOrDirectoryPickerWithoutGestureAllowedForOrigins
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Edge version 123, Windows 7 or later
Source
Microsoft Edge Policy Templates (version 155.0.4283.45)
Category
Microsoft Edge

Description

For security reasons, the showOpenFilePicker(), showSaveFilePicker(), and showDirectoryPicker() web APIs require a prior user gesture ("transient activation") to be called; else, they fail.

If you enable this policy, admins can specify origins on which these APIs can be called without prior user gesture.

For detailed information on valid URL patterns, see https://go.microsoft.com/fwlink/?linkid=2095322. * isn't an accepted value for this policy.

If you disable or don't configure this policy, all origins will require a prior user gesture to call these APIs.

Example value:

https://www.example.com
[*.]example.edu

Options

  • Allow file or directory picker APIs to be called without prior user gesture

Registry

Other policies in the same category

View all policies in this category (438)