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

Policy overview

Key metadata and intent for this policy.

Category
Microsoft Edge
Supported on
Microsoft Edge version 123, Windows 7 or later

Supported OS tags: Windows7

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

Internal name
FileOrDirectoryPickerWithoutGestureAllowedForOrigins
Policy ID
8051cbe296c0
Elements
1

Registry values

How enabled and disabled states update the registry.

No explicit registry values are set for enabled or disabled states.

Policy elements

Inputs and configuration options exposed by this policy.

ScopeElementTypeRegistry mappingConstraints & behaviorCopy
Allow file or directory picker APIs to be called without prior user gesture
ID FileOrDirectoryPickerWithoutGestureAllowedForOriginsDesc
list
Path
Software\Policies\Microsoft\Edge\FileOrDirectoryPickerWithoutGestureAllowedForOrigins
Value name
1, 2, …
Type
REG_SZ
List: standard
Allow file or directory picker APIs to be called without prior user gesture
Both · Type list
Registry mapping
Path
Software\Policies\Microsoft\Edge\FileOrDirectoryPickerWithoutGestureAllowedForOrigins
Value name
1, 2, …
Type
REG_SZ
Details
List: standard