diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-10-25 10:31:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-25 10:31:03 +0200 |
commit | 79706e0ddc6ab970d5709e89b8d0caec4d34662b (patch) | |
tree | 168f9bc806e7eed287bce63e7f6d277eb5adb956 /core/js/files | |
parent | 5926da3dd6535e0eea7fe7871d2347f8b33bb337 (diff) | |
parent | c8a13f644ebbc5840d0e632cf86e5ae46856f7f0 (diff) | |
download | nextcloud-server-79706e0ddc6ab970d5709e89b8d0caec4d34662b.tar.gz nextcloud-server-79706e0ddc6ab970d5709e89b8d0caec4d34662b.zip |
Merge pull request #1283 from nextcloud/us_files-ui-webdav-upload
Use Webdav PUT for uploads
Diffstat (limited to 'core/js/files')
-rw-r--r-- | core/js/files/client.js | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js index ee3efbd5517..fdc51c4a197 100644 --- a/core/js/files/client.js +++ b/core/js/files/client.js @@ -729,8 +729,47 @@ */ addFileInfoParser: function(parserFunction) { this._fileInfoParsers.push(parserFunction); - } + }, + /** + * Returns the dav.Client instance used internally + * + * @since 9.2 + * @return {dav.Client} + */ + getClient: function() { + return this._client; + }, + + /** + * Returns the user name + * + * @since 9.2 + * @return {String} userName + */ + getUserName: function() { + return this._client.userName; + }, + + /** + * Returns the password + * + * @since 9.2 + * @return {String} password + */ + getPassword: function() { + return this._client.password; + }, + + /** + * Returns the base URL + * + * @since 9.2 + * @return {String} base URL + */ + getBaseUrl: function() { + return this._client.baseUrl; + } }; /** |