There is a Cached File Updater contract that allows applications, such as OneDrive or DropBox, to synchronize files with a remote repository when users change them, although file collectors. It works something like this:
- The user receives the file using FileOpenPicker.
- The user modifies the file.
- The source application receives a notification that the file has been modified and uploads the new file to the backup storage.
However, although this script works fine in the official DropBox app, this is not the case in the OneDrive app. I get an UnauthorizedAccessException when I try to get a stream to read from a file. I understand that some people can actually change the file, but it does not load, because only the local copy is changed.
So, is CachedFileUpdater not implemented in OneDrive? And if this is not the case, this is a known issue and are there any workarounds for this?
source
share