Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!-- 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