adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
747 stars 754 forks source link

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

Open steph150 opened 9 months ago

steph150 commented 9 months ago

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

HitmanInWis commented 6 months ago

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.