From f374eb5f1df6f84f94847dae2ee5700436322b50 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Sat, 3 Sep 2016 18:06:35 +0200 Subject: More fixes to file upload Signed-off-by: Roeland Jago Douma --- core/js/files/client.js | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) (limited to 'core/js/files') diff --git a/core/js/files/client.js b/core/js/files/client.js index 572f7879e17..43743fb2d8c 100644 --- a/core/js/files/client.js +++ b/core/js/files/client.js @@ -722,8 +722,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; + } }; /** -- cgit v1.2.3