enhance(frontend): サイズ制限を超過するファイルをアップロードしようとした際にエラーを出すように
This commit is contained in:
parent
2f009f7d49
commit
8032a4e12a
8 changed files with 21 additions and 5 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -129,6 +129,7 @@ export class MetaEntityService {
|
|||
mediaProxy: this.config.mediaProxy,
|
||||
enableUrlPreview: instance.urlPreviewEnabled,
|
||||
noteSearchableScope: (this.config.meilisearch == null || this.config.meilisearch.scope !== 'local') ? 'global' : 'local',
|
||||
maxFileSize: this.config.maxFileSize,
|
||||
};
|
||||
|
||||
return packed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue