Skip to content

Instantly share code, notes, and snippets.

@kishoreBandanadam
Created May 1, 2019 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kishoreBandanadam/3eabb7f949d4af2d2754940a010b8388 to your computer and use it in GitHub Desktop.
Save kishoreBandanadam/3eabb7f949d4af2d2754940a010b8388 to your computer and use it in GitHub Desktop.
<!-- AttachmentUploader-->
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" access="global" >
<aura:attribute name="recordId" type="Id"/>
<aura:attribute name="accept" type="List" default="['.jpg', '.jpeg', '.pdf', '.zip', '.png']"/>
<aura:attribute name="multiple" type="Boolean" default="true"/>
<aura:attribute name="disabled" type="Boolean" default="false"/>
<aura:registerEvent name="AttachmentUploaderEvent" type="c:AttachmentUploaderEvent"/>
<aura:registerEvent name="updateAttachmentsAppEvent" type="c:updateAttachmentsAppEvent"/>
<lightning:fileUpload
multiple="{!v.multiple}"
accept="{!v.accept}"
recordId="{!v.recordId}"
onuploadfinished="{!c.handleUploadFinished}" />
</aura:component>
@masiiie
Copy link

masiiie commented Oct 6, 2022

Please upload AttachmentUploader.js!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment