How do I avoid conflicts between client and server in cloud files API (cfapi)?

WebDAV 106 Reputation points
2021-11-27T14:31:14.817+00:00

I am trying to understand how to avoid conflicts between client and server on a drive created using Cloud Filter API. As far as I see the file can be modified both on the client and on the server. As a result, I will need to create a conflict detection mechanism and a conflict resolution mehanism, which is quite a lot of code.

In addition to that:

  1. It is inconvenient for the end-user to resolve conflicts.
  2. The user does not have any information that the file is being edited by another user.

Can I somehow avoid conflicts? Locking the file on the server when it is opened on the client could be a simple solution. Or does Cloud Filter API or Windows API provides some other approach for this?

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
747 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,499 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,151 Reputation points Microsoft Vendor
    2021-11-29T06:29:12.967+00:00

    As far as I see, There is no explicit functions which provide conflicts resolving approach. You can let the end-user to resolve conflicts before submit taking advantage of version control.

    0 comments No comments