<!--
{
  "availability" : [
    "iOS: 26.1.0 - 27.0.0",
    "iPadOS: 26.1.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHPhotoLibrary/setUploadJobExtensionEnabled(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHPhotoLibrary(im)setUploadJobExtensionEnabled:error:"
  },
  "title" : "setUploadJobExtensionEnabled(_:)"
}
-->

# setUploadJobExtensionEnabled(_:)

Enables or disables the background asset resource upload job feature.

```
func setUploadJobExtensionEnabled(_ enable: Bool) throws
```

## Parameters

`enable`

`true` allows calls to the extension’s host application; you can fulfill that protocol to create [`PHAssetResourceUploadJob`](/documentation/Photos/PHAssetResourceUploadJob) objects. `false` stops calls to the extension’s host application.

## Discussion

You must call this function before you create [`PHAssetResourceUploadJob`](/documentation/Photos/PHAssetResourceUploadJob) in the extension’s host application.

To enable background uploads, you must have both full library access and register the extension with the extension point: “com.apple.photos.background-upload”.

---

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)