Преглед изворни кода

BugFix: getFilePathOnStorage of local.js

Yuki Takei пре 7 година
родитељ
комит
0e964ec8ca
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/server/service/file-uploader/local.js

+ 1 - 1
src/server/service/file-uploader/local.js

@@ -12,7 +12,7 @@ module.exports = function(crowi) {
 
   function getFilePathOnStorage(attachment) {
     if (attachment.filePath != null) {  // remains for backward compatibility for v3.3.5 or below
-      return attachment.filePath;
+      return path.posix.join(basePath, attachment.filePath);
     }
 
     const pageId = attachment.page._id || attachment.page;