I am experiencing a reproducible issue with the Nextcloud Cloud Storage integration in eM Client on Windows.
Problem
Uploading an email attachment via the configured Nextcloud Cloud Storage fails with:
Uploading to cloud storage failed.
Regular email attachments work without any issues. Direct WebDAV access to the same Nextcloud instance also works.
I have already:
- removed and re-added the Nextcloud Cloud Storage provider
- tested with an app password
- tested different login identifiers, including the actual Nextcloud UID
- verified that authentication against Nextcloud succeeds
- verified that normal WebDAV access works
What I found in the eM Client Nextcloud CloudStorage log
eM Client successfully discovers/uses a DAV home based on the Nextcloud UID, similar to:
/remote.php/dav/files/E4FE6A44-5975-4C5C-B862-3AE7019BA909/
However, when accessing the attachment folder, eM Client appears to append another complete DAV path to this DAV home:
remote.php/dav/files/janne.bettray/eM Client Anhänge/
This results in a request path effectively looking like:
/remote.php/dav/files/E4FE6A44-5975-4C5C-B862-3AE7019BA909/remote.php/dav/files/janne.bettray/eM Client Anhänge/
Nextcloud consequently returns:
404 Not Found
Sabre\DAV\Exception\NotFound
File with name //remote.php could not be located
eM Client subsequently attempts an MKCOL , which fails with:
409 Conflict
Sabre\DAV\Exception\Conflict
Parent node does not exist
Authentication itself appears to be successful. The Nextcloud response also contains the correct user ID.
The Nextcloud provider configuration in eM Client only shows the server:
https://cloud.horn-company.de
There is no configurable WebDAV path or attachment-folder path in the UI, so I cannot correct the duplicated path manually.
Expected behavior
I would expect eM Client to use the discovered DAV home and append only the attachment directory, e.g.:
/remote.php/dav/files/<Nextcloud-UID>/eM Client Anhänge/
instead of appending a second /remote.php/dav/files/<username>/ path.
Could you please check whether this is a bug in the Nextcloud Cloud Storage integration, particularly when the Nextcloud internal user ID/UID differs from the login name?
I can provide the complete Nextcloud CloudStorage.log showing the PROPFIND/MKCOL requests and Nextcloud responses if required.