<!--
{
  "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/FileInputPromptResult",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit0A4PageC21FileInputPromptResultO"
  },
  "title" : "WebPage.FileInputPromptResult"
}
-->

# WebPage.FileInputPromptResult

The result of handling a JavaScript open invocation.

```
enum FileInputPromptResult
```

## Topics

### Enumeration Cases

[`case cancel`](/documentation/WebKit/WebPage/FileInputPromptResult/cancel)

Signals a negative action was produced by the invocation.

[`case selected([URL])`](/documentation/WebKit/WebPage/FileInputPromptResult/selected(_:))

Signals an affirmative action was produced by the invocation with the specified files.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

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)