Просмотр исходного кода

BugFix: getFilePathOnStorage of local.js

Yuki Takei 7 лет назад
Родитель
Сommit
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;