aem-core-wcm-components icon indicating copy to clipboard operation
aem-core-wcm-components copied to clipboard

[Download v2] Unable to configure upload from local file system via design dialog

Open steph150 opened this issue 1 year ago • 1 comments

Bug Report

Current Behavior Checking the "Allow upload from file system" checkbox in the design dialog doesn't update the "Download Asset" section to allow local file system upload.

Screenshot 2024-03-01 at 11 07 53 am Screenshot 2024-03-01 at 11 07 44 am

Expected behavior/code The "Download Asset" should allow for local file system upload.

Environment

  • AEM version: 2023.12.14697.20231215T125030Z
  • Core Components version: 2.23.4

steph150 avatar Mar 01 '24 06:03 steph150

Changing the value to allowUpload="true" or allowUpload="{Boolean}true" enables upload as expected.

Changing the value to allowUpload="${not empty cqDesign.allowUpload ? cqDesign.allowUpload : true}" (default to true) does not enable upload Changing the value to allowUpload="${true}" (hard-coded eval to true) does not enable upload.

It's not an issue with ${cqDesign.allowUpload} being set - I can confirm it is set by plugging it in as the value for another field and displaying "true" in the field.

As best as I can tell, the allowUpload attribute for the fileupload field does not evaluate expressions.

HitmanInWis avatar May 07 '24 21:05 HitmanInWis