Skip to content

feat(file-uploader): add maxFileSize param to ERROR_FILE_SIZE_EXCEEDED#2015

Merged
kfenner merged 2 commits intomainfrom
feat/file-uploader-error-file-size-exceeded-param
May 7, 2026
Merged

feat(file-uploader): add maxFileSize param to ERROR_FILE_SIZE_EXCEEDED#2015
kfenner merged 2 commits intomainfrom
feat/file-uploader-error-file-size-exceeded-param

Conversation

@spike-rabbit
Copy link
Copy Markdown
Member

@spike-rabbit spike-rabbit commented May 6, 2026

Summary

  • Adds {{maxFileSize}} interpolation parameter to SI_FILE_UPLOADER.ERROR_FILE_SIZE_EXCEEDED translation string
  • Consistent with existing parametric translations (MAX_SIZE, ACCEPTED_FILE_TYPES, MAX_FILE_REACHED) added in Add params to translation texts #1447
  • Extends UploadFile model with errorParams to carry translation parameters to the template

Closes #2008


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

@spike-rabbit spike-rabbit requested review from a team as code owners May 6, 2026 07:25
@spike-rabbit spike-rabbit force-pushed the feat/file-uploader-error-file-size-exceeded-param branch from 50620b2 to 9331f02 Compare May 6, 2026 07:27
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces dynamic parameters for file upload error messages, allowing the maximum file size to be displayed to users. It adds an errorParams property to the UploadFile model and updates the translation pipe in the template. A review comment identifies that while the JSDoc for the errorTextFileMaxSize input in the file upload directive was updated, the actual implementation still uses the old static string, which will prevent the parameter from being displayed.

Comment thread projects/element-ng/file-uploader/si-file-upload.directive.ts
@spike-rabbit spike-rabbit force-pushed the feat/file-uploader-error-file-size-exceeded-param branch 3 times, most recently from d4c3a0a to 9b05256 Compare May 6, 2026 07:46
@spike-rabbit spike-rabbit requested a review from michael-smt May 6, 2026 07:47
… file size

The error message when a file exceeds the maximum file size now displays the
actual configured limit using the {{maxFileSize}} interpolation parameter.

Closes #2008
@spike-rabbit spike-rabbit force-pushed the feat/file-uploader-error-file-size-exceeded-param branch from 9b05256 to af4eff6 Compare May 6, 2026 08:22
Copy link
Copy Markdown
Member

@kfenner kfenner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@kfenner kfenner added this pull request to the merge queue May 7, 2026
Merged via the queue into main with commit 9642f3e May 7, 2026
17 checks passed
@kfenner kfenner deleted the feat/file-uploader-error-file-size-exceeded-param branch May 7, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add param to SI_FILE_UPLOADER.ERROR_FILE_SIZE_EXCEEDED

3 participants