<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKAsset/fileURL",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKAsset(py)fileURL"
  },
  "title" : "fileURL"
}
-->

# fileURL

The URL for accessing the asset.

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

## 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 ``doc://com.apple.cloudkit/documentation/CloudKit/CKError/serverRecordChanged`` error, CloudKit doesn’t download assets for the copy of the server’s record that’s accessible using the error’s ``doc://com.apple.cloudkit/documentation/CloudKit/CKError/serverRecord`` property. In this scenario, ``doc://com.apple.cloudkit/documentation/CloudKit/CKAsset/fileURL`` is `nil` for all of that record’s asset fields.

---

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)