diff --git a/lang/en/server/file.php b/lang/en/server/file.php index 4e60121f8..63ac2c1dc 100644 --- a/lang/en/server/file.php +++ b/lang/en/server/file.php @@ -21,6 +21,7 @@ return [ 'success' => 'Files uploaded successfully', 'failed' => 'Failed to upload files', 'header' => 'Uploading Files', + 'error' => 'An error occurred while uploading', ], 'rename' => [ 'title' => 'Rename', diff --git a/resources/views/filament/server/pages/list-files.blade.php b/resources/views/filament/server/pages/list-files.blade.php index bee6b1957..cde3b0fb7 100644 --- a/resources/views/filament/server/pages/list-files.blade.php +++ b/resources/views/filament/server/pages/list-files.blade.php @@ -126,7 +126,7 @@ for (const { file } of filesWithPaths) { if (file.size > uploadSizeLimit) { new window.FilamentNotification() - .title(`File ${file.name} exceeds the upload size limit of ${this.formatBytes(uploadSizeLimit)}`) + .title(`File ${file.name} exceeds the upload limit.`) .danger() .send(); this.isUploading = false; @@ -193,9 +193,9 @@ if (failed.length === 0) { new window.FilamentNotification().title('{{ trans('server/file.actions.upload.success') }}').success().send(); } else if (failed.length === this.totalFiles) { - new window.FilamentNotification().title('{{ trans('server/file.actions.upload.error_all') }}').danger().send(); + new window.FilamentNotification().title('{{ trans('server/file.actions.upload.failed') }}').danger().send(); } else { - new window.FilamentNotification().title('{{ trans('server/file.actions.upload.error_partial') }}').warning().send(); + new window.FilamentNotification().title('{{ trans('server/file.actions.upload.failed') }}').danger().send(); } if (this.autoCloseTimer) clearTimeout(this.autoCloseTimer);