timestee / dart-webdav

A Easy WebDAV Client in Dart
https://github.com/timestee/dart-webdav
The Unlicense
28 stars 14 forks source link

To prevent overwriting a file allow sending headers with an upload #15

Open butonic opened 3 years ago

butonic commented 3 years ago

If you want to prevent overwriting files that have been updated since the last time the file was retrieved we can use etags and the If-Match header. But to do that the upload method should pass on an optional Map of headers to the _send method (which can already does the right thing).