mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-27 11:54:32 +02:00
feat: アップロード可能な最大ファイルサイズをロールごとに設定可能に
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user