Disable the Upload button in the Granite file upload control | Community
Skip to main content
marissaw9851252
Level 3
October 16, 2015
Solved

Disable the Upload button in the Granite file upload control

  • October 16, 2015
  • 2 replies
  • 1907 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by marissaw9851252

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

2 replies

smacdonald2008
Level 10
October 16, 2015

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

marissaw9851252
marissaw9851252AuthorAccepted solution
Level 3
October 16, 2015

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