Przeglądaj źródła

BugFix: getFilePathOnStorage of local.js

Yuki Takei 7 lat temu
rodzic
commit
0e964ec8ca
1 zmienionych plików z 1 dodań i 1 usunięć
  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;