Skip to content

[FORMS-10306] Fix default Maximum file size showing empty instead of 2 MB in File Attachment v1 dialog#1900

Draft
pankaj-parashar wants to merge 1 commit into
masterfrom
issues/FORMS-10306
Draft

[FORMS-10306] Fix default Maximum file size showing empty instead of 2 MB in File Attachment v1 dialog#1900
pankaj-parashar wants to merge 1 commit into
masterfrom
issues/FORMS-10306

Conversation

@pankaj-parashar

Copy link
Copy Markdown
Contributor

Summary

  • Fixes the File Attachment v1 property dialog where the Maximum file size field appears empty instead of showing the default value of 2 MB.
  • Changes defaultValue from empty string to 2 for the fileSizeLimit numberfield in fileinput/v1/fileinput/_cq_dialog/.content.xml.

Root Cause

The defaultValue attribute for the file size limit numberfield was set to an empty string, causing the dialog to render a blank field instead of the expected default of 2 MB.

Test Plan

  • Open the File Attachment v1 component property dialog in author mode
  • Verify the Maximum file size field shows 2 (MB) by default when no value has been previously set
  • Verify saving and re-opening the dialog persists the value correctly
  • Verify file upload still enforces the size limit at runtime

Jira

https://jira.corp.adobe.com/browse/FORMS-10306

🤖 Generated with Claude Code via OrcaFix skill

The Maximum file size field in the File Attachment v1 property dialog
was showing an empty value instead of the default 2 (MB). The Java model
defaults to 2MB but the dialog had defaultValue="" which showed nothing.
Setting defaultValue="2" makes the dialog reflect the actual default.
@pankaj-parashar pankaj-parashar added the FormsOrcaFix Raised by OrcaFix skill label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FormsOrcaFix Raised by OrcaFix skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant