<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INFile",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INFile"
  },
  "title" : "INFile"
}
-->

# INFile

An object that describes a file.

```
class INFile
```

## Topics

### Initializing a File Object

[`init(data:filename:typeIdentifier:)`](/documentation/Intents/INFile/init(data:filename:typeIdentifier:))

Creates a new file object with the specified data and identifier.

[`init(fileURL:filename:typeIdentifier:)`](/documentation/Intents/INFile/init(fileURL:filename:typeIdentifier:))

Creates a new file object with the specified URL and identifier.

### Getting the File Information

[`filename`](/documentation/Intents/INFile/filename)

The name of the file.

[`data`](/documentation/Intents/INFile/data)

The data associated with a file.

[`fileURL`](/documentation/Intents/INFile/fileURL)

The URL that describes the location of the file.

[`typeIdentifier`](/documentation/Intents/INFile/typeIdentifier)

The type of the file.



---

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)