---
title: fileURL
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckasset/fileurl
---

# fileURL

The URL for accessing the asset.

## Declaration

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

## Discussion

Discussion After you create an asset, use the URL in this property to access the asset’s contents. The URL in this property is different from the one you specify when creating the asset. note: If a modify operation fails with a serverRecordChanged error, CloudKit doesn’t download assets for the copy of the server’s record that’s accessible using the error’s serverRecord property. In this scenario, fileURL is nil for all of that record’s asset fields.
