---
title: NSFileManagerResumeSyncBehavior.preserveLocalChanges
framework: foundation
role: symbol
role_heading: Case
path: foundation/nsfilemanagerresumesyncbehavior/preservelocalchanges
---

# NSFileManagerResumeSyncBehavior.preserveLocalChanges

Resumes synchronizing by uploading the local version of the file.

## Declaration

```swift
case preserveLocalChanges
```

## Discussion

Discussion If the server has a newer version, the server may create a conflict copy of the file, or may automatically pick the winner of the conflict. Apps can choose to implement conflict handling themselves by passing NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict.

## See Also

### Identifying sync behaviors

- [NSFileManagerResumeSyncBehavior.afterUploadWithFailOnConflict](foundation/nsfilemanagerresumesyncbehavior/afteruploadwithfailonconflict.md)
- [NSFileManagerResumeSyncBehavior.dropLocalChanges](foundation/nsfilemanagerresumesyncbehavior/droplocalchanges.md)
