|
@@ -92,6 +92,7 @@ export default class AdminAppContainer extends Container {
|
|
|
|
|
|
|
|
fileUploadType: appSettingsParams.fileUploadType,
|
|
fileUploadType: appSettingsParams.fileUploadType,
|
|
|
envFileUploadType: appSettingsParams.envFileUploadType,
|
|
envFileUploadType: appSettingsParams.envFileUploadType,
|
|
|
|
|
+ isFileUploadEnvPrioritized: appSettingsParams.isFileUploadEnvPrioritized,
|
|
|
|
|
|
|
|
s3Region: appSettingsParams.s3Region,
|
|
s3Region: appSettingsParams.s3Region,
|
|
|
s3CustomEndpoint: appSettingsParams.s3CustomEndpoint,
|
|
s3CustomEndpoint: appSettingsParams.s3CustomEndpoint,
|
|
@@ -108,22 +109,15 @@ export default class AdminAppContainer extends Container {
|
|
|
isEnabledPlugins: appSettingsParams.isEnabledPlugins,
|
|
isEnabledPlugins: appSettingsParams.isEnabledPlugins,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // check is file upload type forced
|
|
|
|
|
- if (this.isFixedFileUploadByEnvVar(appSettingsParams.envFileUploadType)) {
|
|
|
|
|
|
|
+ // if isFileUploadEnvPrioritized is true, get fileUploadType from only env var and make the forms fixed.
|
|
|
|
|
+ // and if env var 'FILE_UPLOAD' is null, envFileUploadType is 'aws' that is default value of 'FILE_UPLOAD'.
|
|
|
|
|
+ if (appSettingsParams.isFileUploadEnvPrioritized) {
|
|
|
this.setState({ fileUploadType: appSettingsParams.envFileUploadType });
|
|
this.setState({ fileUploadType: appSettingsParams.envFileUploadType });
|
|
|
this.setState({ isFixedFileUploadByEnvVar: true });
|
|
this.setState({ isFixedFileUploadByEnvVar: true });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * get isFixedFileUploadByEnvVar
|
|
|
|
|
- * @return {bool} isFixedFileUploadByEnvVar
|
|
|
|
|
- */
|
|
|
|
|
- isFixedFileUploadByEnvVar(envFileUploadType) {
|
|
|
|
|
- return envFileUploadType != null;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* Change title
|
|
* Change title
|
|
|
*/
|
|
*/
|