bug fix: file manager

This commit is contained in:
Usman Nasir
2022-05-16 20:41:27 +05:00
parent 0b346c1b3d
commit 2012feb49d
2 changed files with 10 additions and 6 deletions

View File

@@ -674,7 +674,7 @@ fileManager.controller('fileManagerCtrl', function ($scope, $http, FileUploader,
var data = { var data = {
completeStartingPath: completePathToFile, completeStartingPath: completePathToFile,
method: "listForTable", method: "listForTable",
home: homePathBack, home: "/",
domainRandomSeed: domainRandomSeed, domainRandomSeed: domainRandomSeed,
domainName: domainName domainName: domainName
}; };
@@ -1201,9 +1201,11 @@ fileManager.controller('fileManagerCtrl', function ($scope, $http, FileUploader,
pathbase = $scope.currentPath; pathbase = $scope.currentPath;
} }
$scope.extractionLoading = false; $scope.extractionLoading = false;
var completeFileToExtract = $scope.currentRPath + "/" + allFilesAndFolders[0]; var completeFileToExtract = pathbase + "/" + allFilesAndFolders[0];
var extractionType = ""; var extractionType = "";
if (findFileExtension(completeFileToExtract) == "gz") { if (findFileExtension(completeFileToExtract) == "gz") {

View File

@@ -674,7 +674,7 @@ fileManager.controller('fileManagerCtrl', function ($scope, $http, FileUploader,
var data = { var data = {
completeStartingPath: completePathToFile, completeStartingPath: completePathToFile,
method: "listForTable", method: "listForTable",
home: homePathBack, home: "/",
domainRandomSeed: domainRandomSeed, domainRandomSeed: domainRandomSeed,
domainName: domainName domainName: domainName
}; };
@@ -1201,9 +1201,11 @@ fileManager.controller('fileManagerCtrl', function ($scope, $http, FileUploader,
pathbase = $scope.currentPath; pathbase = $scope.currentPath;
} }
$scope.extractionLoading = false; $scope.extractionLoading = false;
var completeFileToExtract = $scope.currentRPath + "/" + allFilesAndFolders[0]; var completeFileToExtract = pathbase + "/" + allFilesAndFolders[0];
var extractionType = ""; var extractionType = "";
if (findFileExtension(completeFileToExtract) == "gz") { if (findFileExtension(completeFileToExtract) == "gz") {