|
|
@@ -14,7 +14,9 @@ const envToModuleMappings = {
|
|
|
class FileUploadServiceFactory {
|
|
|
|
|
|
initializeUploader(crowi) {
|
|
|
+ // temporarily use envToModuleMappings [remove in GW-4136]
|
|
|
const fileUplodeTypeInConfig = envToModuleMappings[crowi.configManager.getConfig('crowi', 'app:fileUploadType')];
|
|
|
+
|
|
|
const method = envToModuleMappings[process.env.FILE_UPLOAD] || fileUplodeTypeInConfig || 'ppp';
|
|
|
const modulePath = `./${method}`;
|
|
|
this.uploader = require(modulePath)(crowi);
|