You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dg...@apache.org on 2020/05/29 11:43:39 UTC

[incubator-dlab] branch DLAB-1840 updated: Change file upload position

This is an automated email from the ASF dual-hosted git repository.

dgnatyshyn pushed a commit to branch DLAB-1840
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-1840 by this push:
     new 4eb7bf8  Change file upload position
4eb7bf8 is described below

commit 4eb7bf8c1daae557ca74ffdd3f1920eb98d4bca7
Author: Dmytro Gnatyshyn <di...@ukr.net>
AuthorDate: Fri May 29 14:43:17 2020 +0300

    Change file upload position
---
 .../src/app/resources/bucket-browser/bucket-browser.component.ts   | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/bucket-browser/bucket-browser.component.ts b/services/self-service/src/main/resources/webapp/src/app/resources/bucket-browser/bucket-browser.component.ts
index d08bdad..5da96ab 100644
--- a/services/self-service/src/main/resources/webapp/src/app/resources/bucket-browser/bucket-browser.component.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/resources/bucket-browser/bucket-browser.component.ts
@@ -56,11 +56,8 @@ export class BucketBrowserComponent implements OnInit {
   public selectedItems;
   public searchValue: string;
   public isQueueFull: boolean;
-  // public refreshTokenLimit = 900000;
-  public refreshTokenLimit = 3580000;
+  public refreshTokenLimit = 900000;
   private isTokenRefreshing = false;
-
-
   @ViewChild(FolderTreeComponent, {static: true}) folderTreeComponent;
   public isSelectionOpened: any;
   isFilterVisible: boolean;
@@ -280,11 +277,11 @@ export class BucketBrowserComponent implements OnInit {
     const path = file.path.indexOf('/') !== -1 ?  this.path.slice(this.path.indexOf('/') + 1) : '';
     const fullPath = path ? `${path}/${file.name}` : file.name;
     const formData = new FormData();
-    formData.append('file', file.file);
     formData.append('size', file.file.size);
     formData.append('object', fullPath);
     formData.append('bucket', this.bucketName);
     formData.append('endpoint', this.endpoint);
+    formData.append('file', file.file);
     file.status = 'waiting';
     file.request = this.bucketBrowserService.uploadFile(formData);
     this.sendFile(file);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org