|
|
@@ -166,7 +166,9 @@ module.exports = function(crowi) {
|
|
|
|
|
|
configSchema.statics.isUploadable = function(config)
|
|
|
{
|
|
|
- if (crowi.env.FILE_UPLOAD == 'aws' && (
|
|
|
+ var method = crowi.env.FILE_UPLOAD || 'aws';
|
|
|
+
|
|
|
+ if (method == 'aws' && (
|
|
|
!config.crowi['aws:accessKeyId'] ||
|
|
|
!config.crowi['aws:secretAccessKey'] ||
|
|
|
!config.crowi['aws:region'] ||
|
|
|
@@ -174,7 +176,7 @@ module.exports = function(crowi) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- return crowi.env.FILE_UPLOAD != 'none';
|
|
|
+ return method != 'none';
|
|
|
};
|
|
|
|
|
|
/*
|