<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "macOS: 10.12.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKOpenPanelParameters",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKOpenPanelParameters"
  },
  "title" : "WKOpenPanelParameters"
}
-->

# WKOpenPanelParameters

The configuration details of a file upload control in your web content.

```
@MainActor class WKOpenPanelParameters
```

## Overview

Use a [`WKOpenPanelParameters`](/documentation/WebKit/WKOpenPanelParameters) to determine the configuration of a file upload control. You don’t create this object directly. Instead, a web view creates one and passes it to the [`webView(_:runOpenPanelWith:initiatedByFrame:completionHandler:)`](/documentation/WebKit/WKUIDelegate/webView(_:runOpenPanelWith:initiatedByFrame:completionHandler:)) method of its UI delegate object when it displays a file upload control.

## Topics

### Configuring the panel parameters

[`allowsMultipleSelection`](/documentation/WebKit/WKOpenPanelParameters/allowsMultipleSelection)

A Boolean value that indicates whether the file upload control supports multiple files.

[`allowsDirectories`](/documentation/WebKit/WKOpenPanelParameters/allowsDirectories)

A Boolean value that indicates whether the file upload control supports the selection of directories.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)