Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Disable the Upload button in the Granite file upload control

marissaw9851252
Level 3
Level 3

Is there a way OOTB to disable the Upload button in the granite/ui/components/foundation/form/fileupload control?  We want to force the user to use images that were uploaded to the DAM.

1 Accepted Solution
marissaw9851252
Correct answer by
Level 3
Level 3

Thanks.  We were originally going to do that.  I just ran across this on another site and it worked.

 

In 61, remove the uploadUrl property on widget node (sling:resourceType=granite/ui/components/foundation/form/fileupload) to disable the “Upload Image Asset” button

View solution in original post

2 Replies
smacdonald2008
Level 10
Level 10

Like all AEM components - you would need to overlay this TOuch UI component and modify the app logic to disable the button. 

marissaw9851252
Correct answer by
Level 3
Level 3

Thanks.  We were originally going to do that.  I just ran across this on another site and it worked.

 

In 61, remove the uploadUrl property on widget node (sling:resourceType=granite/ui/components/foundation/form/fileupload) to disable the “Upload Image Asset” button

View solution in original post