mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-28 01:41:35 +01:00
Fix file conflict in copy api is not handled
This commit is contained in:
parent
07e2aba673
commit
d53590522f
1 changed files with 5 additions and 0 deletions
|
@ -172,6 +172,11 @@ class FileWebdavDataSource implements FileDataSource {
|
|||
throw ApiException(
|
||||
response: response,
|
||||
message: "Failed communicating with server: ${response.statusCode}");
|
||||
} else if (response.statusCode == 204) {
|
||||
// conflict
|
||||
throw ApiException(
|
||||
response: response,
|
||||
message: "Failed communicating with server: ${response.statusCode}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue