Browse Source

Merge pull request #283 from rabitarochan/fix/local-file-upload-url

Fix #282: Fixed upload file URL of local mode.
Yuki Takei 8 years ago
parent
commit
d6ff622b04
1 changed files with 0 additions and 5 deletions
  1. 0 5
      lib/routes/attachment.js

+ 0 - 5
lib/routes/attachment.js

@@ -145,11 +145,6 @@ module.exports = function(crowi, app) {
           var fileUrl = data.fileUrl;
           var fileUrl = data.fileUrl;
           var config = crowi.getConfig();
           var config = crowi.getConfig();
 
 
-          // isLocalUrl??
-          if (!fileUrl.match(/^https?/)) {
-            fileUrl = (config.crowi['app:url'] || '') + fileUrl;
-          }
-
           var result = {
           var result = {
             page: page.toObject(),
             page: page.toObject(),
             attachment: data.toObject(),
             attachment: data.toObject(),