From ae8fc243dab0436b6f8e6e15c1a4c2d1d39e8763 Mon Sep 17 00:00:00 2001 From: Muthukrishnan Kandasamy Date: Thu, 26 Aug 2021 21:48:37 +0530 Subject: [PATCH] Blazor File manager not rendering in nodejs service. --- filesystem-server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filesystem-server.js b/filesystem-server.js index fbf5491e..36de8521 100644 --- a/filesystem-server.js +++ b/filesystem-server.js @@ -242,7 +242,7 @@ function fileDetails(req, res, filepath) { var cwd = {}; fs.stat(filepath, function (err, stats) { cwd.name = path.basename(filepath); - cwd.size = getSize(stats.size); + cwd.size = stats.size; cwd.isFile = stats.isFile(); cwd.modified = stats.ctime; cwd.created = stats.mtime; @@ -684,7 +684,7 @@ function FileManagerDirectoryContent(req, res, filepath, searchFilterPath) { replaceRequestParams(req, res); fs.stat(filepath, function (err, stats) { cwd.name = path.basename(filepath); - cwd.size = getSize(stats.size); + cwd.size = stats.size; cwd.isFile = stats.isFile(); cwd.dateModified = stats.ctime; cwd.dateCreated = stats.mtime;