Skip to content

Instantly share code, notes, and snippets.

@fredrick-dominy
Last active May 7, 2018 23:01
Show Gist options
  • Select an option

  • Save fredrick-dominy/c7ff90f4dc7efb9690ab204d310ceecc to your computer and use it in GitHub Desktop.

Select an option

Save fredrick-dominy/c7ff90f4dc7efb9690ab204d310ceecc to your computer and use it in GitHub Desktop.
fileupload 6.3
<text
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/text"
text="Description of image..."/>
<file
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fileupload"
class="cq-droptarget"
fieldLabel="Image Asset"
fieldDescription="Drag and drop an image asset from the asset finder here. If asset is shown, press 'Clear' to remove the reference."
fileNameParameter="./image/fileName"
mimeTypes="[image]"
name="./image/file"
useHTML5="{Boolean}true"
autoStart="{Boolean}false"
allowUpload="{Boolean}false"
uploadUrl="${suffix.path}"
title="Drag and Drop Image"/>
<resType
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/hidden"
name="./image/sling:resourceType"
value="foundation/components/image"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment