Sotaro KARASAWA 10 лет назад
Родитель
Сommit
b4e54600b3
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      lib/routes/me.js
  2. 1 1
      lib/util/fileUploader.js

+ 1 - 1
lib/routes/me.js

@@ -65,7 +65,7 @@ module.exports = function(crowi, app) {
             'message': 'Error while uploading to ',
           });
         }
-        var imageUrl = fileUploader.generateS3FillUrl(filePath);
+        var imageUrl = fileUploader.generateS3FileUrl(filePath);
         req.user.updateImage(imageUrl, function(err, data) {
           fs.unlink(tmpPath, function (err) {
             // エラー自体は無視

+ 1 - 1
lib/util/fileUploader.js

@@ -47,7 +47,7 @@ module.exports = function(crowi, app) {
     });
   };
 
-  lib.generateS3FillUrl = function(filePath) {
+  lib.generateS3FileUrl = function(filePath) {
     var awsConfig = getAwsConfig();
     var url = 'https://' + awsConfig.bucket +'.s3.amazonaws.com/' + filePath;