enhance(frontend): サイズ制限を超過するファイルをアップロードしようとした際にエラーを出すように

This commit is contained in:
syuilo
2024-08-23 16:40:11 +09:00
parent 2f009f7d49
commit 8032a4e12a
8 changed files with 21 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ export class DownloadService {
const timeout = 30 * 1000;
const operationTimeout = 60 * 1000;
const maxSize = this.config.maxFileSize ?? 262144000;
const maxSize = this.config.maxFileSize;
const urlObj = new URL(url);
let filename = urlObj.pathname.split('/').pop() ?? 'untitled';