FileOrDirectoryPickerWithoutGestureAllowedForOrigins

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

Supported on:

  • Chrome (Windows) since version 113

Description:

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

With this policy set, admins can specify origins on which these APIs can be
called without prior user gesture.

  • is not an accepted value for this policy.

If this policy is unset, all origins will require a prior user gesture to call
these APIs.

Supported features:

  • Applied to browser without restart. Note that some ongoing tasks may not be affected.
  • Applied at Samsung Browser profile level.

Data type:

List of strings

Windows registry location:

Software\Policies\Samsung\Internet\FileOrDirectoryPickerWithoutGestureAllowedForOrigins

Example value:

Software\Policies\Samsung\Internet\FileOrDirectoryPickerWithoutGestureAllowedForOrigins\1 = https://www.example.com
Software\Policies\Samsung\Internet\FileOrDirectoryPickerWithoutGestureAllowedForOrigins\2 = [*.]example.edu

More policies under Miscellaneous: