---
title: fileURL
framework: appintents
role: symbol
role_heading: Instance Property
path: appintents/intentfile/fileurl
---

# fileURL

URL to the file on disk, if any. If the file isn’t stored on disk, access the contents using the data property.

## Declaration

```swift
var fileURL: URL? { get }
```

## Discussion

Discussion If the file was created elsewhere on the system, make sure to surround access to file contents with startAccessingSecurityScopedResource() and stopAccessingSecurityScopedResource().

## See Also

### Getting the file information

- [filename](appintents/intentfile/filename.md)
- [type](appintents/intentfile/type.md)
- [data](appintents/intentfile/data.md)
- [removedOnCompletion](appintents/intentfile/removedoncompletion.md)
