<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPage/DialogPresenting/handleFileInputPrompt(parameters:initiatedBy:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit0A4PageC16DialogPresentingP21handleFileInputPrompt10parameters11initiatedByAC0ghI6ResultOSo21WKOpenPanelParametersC_AC9FrameInfoVtYaF"
  },
  "title" : "handleFileInputPrompt(parameters:initiatedBy:)"
}
-->

# handleFileInputPrompt(parameters:initiatedBy:)

Returns the result of handling a JavaScript request to open files.

```
@MainActor func handleFileInputPrompt(parameters: WKOpenPanelParameters, initiatedBy frame: WebPage.FrameInfo) async -> WebPage.FileInputPromptResult
```

## Parameters

`parameters`

The options to use for the file dialog.

`frame`

Information about the frame whose JavaScript process initiated this call.

## Return Value

The result of handling the invocation; if the result is affirmative, the response will include a set of files returned to JavaScript.

---

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)