1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-27 11:54:32 +02:00

feat: アップロード可能な最大ファイルサイズをロールごとに設定可能に

This commit is contained in:
syuilo
2025-04-27 09:35:44 +09:00
parent effc84b9cc
commit 9481b5a6e8
12 changed files with 59 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ export function uploadFile(
const _folder = typeof folder === 'string' ? folder : folder?.id;
if (file.size > instance.maxFileSize) {
if ((file.size > instance.maxFileSize) || (file.size > ($i.policies.maxFileSizeMb * 1024 * 1024))) {
alert({
type: 'error',
title: i18n.ts.failedToUpload,