|
@@ -378,11 +378,12 @@ export default class ConfigManager implements S2sMessageHandlable {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Returns file upload total limit in bytes.
|
|
* Returns file upload total limit in bytes.
|
|
|
|
|
+ * {@link https://github.com/weseek/growi/blob/798e44f14ad01544c1d75ba83d4dfb321a94aa0b/src/server/service/file-uploader/gridfs.js#L86-L88 Reference to previous implementation.}
|
|
|
* @returns file upload total limit in bytes
|
|
* @returns file upload total limit in bytes
|
|
|
*/
|
|
*/
|
|
|
getFileUploadTotalLimit(): number {
|
|
getFileUploadTotalLimit(): number {
|
|
|
const fileUploadTotalLimit = this.getConfig('crowi', 'app:fileUploadType') === 'mongodb'
|
|
const fileUploadTotalLimit = this.getConfig('crowi', 'app:fileUploadType') === 'mongodb'
|
|
|
- // Use app:fileUploadTotalLimit if gridfs:totalLimit is null (default for gridfs:totalLimitd is null)
|
|
|
|
|
|
|
+ // Use app:fileUploadTotalLimit if gridfs:totalLimit is null (default for gridfs:totalLimit is null)
|
|
|
? this.getConfig('crowi', 'gridfs:totalLimit') ?? this.getConfig('crowi', 'app:fileUploadTotalLimit')
|
|
? this.getConfig('crowi', 'gridfs:totalLimit') ?? this.getConfig('crowi', 'app:fileUploadTotalLimit')
|
|
|
: this.getConfig('crowi', 'app:fileUploadTotalLimit');
|
|
: this.getConfig('crowi', 'app:fileUploadTotalLimit');
|
|
|
return fileUploadTotalLimit;
|
|
return fileUploadTotalLimit;
|