#102 Fixed folder creation structure on folder upload button

This commit is contained in:
mauriziovitale84
2016-05-27 10:42:29 +01:00
parent 9e721327ef
commit dc14a26786
3 changed files with 93 additions and 7 deletions

View File

@@ -111,6 +111,7 @@ export class UploadService {
*/
private getAlfrescoClient() {
let defaultClient = new AlfrescoApi.ApiClient();
defaultClient.basePath = this.getHost() + this.getBaseUrl();
// Configure HTTP basic authorization: basicAuth
let basicAuth = defaultClient.authentications['basicAuth'];
@@ -258,7 +259,7 @@ export class UploadService {
};
return Observable.fromPromise(apiInstance.addNode(nodeId, nodeBody))
.map(res => {
console.log(res);
return res;
})
.do(data => console.log('Node data', data)) // eyeball results in the console
.catch(this.handleError);