Преглед на файлове

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;