nextcloud address

This commit is contained in:
fyears 2024-05-25 15:57:48 +08:00
parent 7ca2d19255
commit be4a2d3271

View File

@ -324,8 +324,17 @@ export class FakeFsWebdav extends FakeFs {
await this._checkPartialSupport(); await this._checkPartialSupport();
} }
/**
* <server>/remote.php/dav/files/<userid>
* => <server>/remote.php/dav/uploads/<userid>
*/
_getnextcloudUploadServerAddress = () => { _getnextcloudUploadServerAddress = () => {
const s = this.webdavConfig.address.split("/"); let k = this.webdavConfig.address;
if (k.endsWith('/')) {
// no tailing slash
k = k.substring(0, k.length-1);
}
const s = k.split("/");
if ( if (
s.length > 3 && s.length > 3 &&
s[s.length - 3] === "dav" && s[s.length - 3] === "dav" &&