<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetResource/assetResource(forUploadJob:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetResource(cm)assetResourceForUploadJob:"
  },
  "title" : "assetResource(forUploadJob:)"
}
-->

# assetResource(forUploadJob:)

Returns the asset resource associated with the given upload job.

```
class func assetResource(forUploadJob job: PHAssetResourceUploadJob) -> PHAssetResource?
```

## Parameters

`job`

the upload job whose associated asset resource is returned

## Return Value

The asset resource associated with the upload job, or nil if the resource cannot be found.

---

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)