diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2024-08-23 16:40:11 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2024-08-23 16:40:11 +0900 |
| commit | 8032a4e12ad0425b3a2b4d7a857f12de656a718d (patch) | |
| tree | affe3390da6d69d012da6986ab31f917abd68df6 /packages/backend/src/config.ts | |
| parent | add note (diff) | |
| download | misskey-8032a4e12ad0425b3a2b4d7a857f12de656a718d.tar.gz misskey-8032a4e12ad0425b3a2b4d7a857f12de656a718d.tar.bz2 misskey-8032a4e12ad0425b3a2b4d7a857f12de656a718d.zip | |
enhance(frontend): サイズ制限を超過するファイルをアップロードしようとした際にエラーを出すように
Diffstat (limited to 'packages/backend/src/config.ts')
| -rw-r--r-- | packages/backend/src/config.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/config.ts b/packages/backend/src/config.ts index 3e5a1e81cd..cff0194780 100644 --- a/packages/backend/src/config.ts +++ b/packages/backend/src/config.ts @@ -133,7 +133,7 @@ export type Config = { proxySmtp: string | undefined; proxyBypassHosts: string[] | undefined; allowedPrivateNetworks: string[] | undefined; - maxFileSize: number | undefined; + maxFileSize: number; clusterLimit: number | undefined; id: string; outgoingAddress: string | undefined; @@ -250,7 +250,7 @@ export function loadConfig(): Config { proxySmtp: config.proxySmtp, proxyBypassHosts: config.proxyBypassHosts, allowedPrivateNetworks: config.allowedPrivateNetworks, - maxFileSize: config.maxFileSize, + maxFileSize: config.maxFileSize ?? 262144000, clusterLimit: config.clusterLimit, outgoingAddress: config.outgoingAddress, outgoingAddressFamily: config.outgoingAddressFamily, |