Make normal files downloadable
This commit is contained in:
@@ -148,7 +148,7 @@ app.controller('FileManagerController', ['$scope', 'Client', function ($scope, C
|
||||
}
|
||||
|
||||
$scope.refresh = function () {
|
||||
Client.filesGet($scope.appId, $scope.cwd, function (error, result) {
|
||||
Client.filesGet($scope.appId, $scope.cwd, false, function (error, result) {
|
||||
if (error) return Client.error(error);
|
||||
|
||||
$scope.entries = result.entries;
|
||||
@@ -169,7 +169,7 @@ app.controller('FileManagerController', ['$scope', 'Client', function ($scope, C
|
||||
if (entry.isDirectory) {
|
||||
setDirectory(filePath);
|
||||
} else if (entry.isFile) {
|
||||
Client.filesGet($scope.appId, filePath, function (error, result) {
|
||||
Client.filesGet($scope.appId, filePath, true, function (error, result) {
|
||||
if (error) return Client.error(error);
|
||||
|
||||
console.log('open', result);
|
||||
|
||||
Reference in New Issue
Block a user