Does anyone have an idea about uploading a new version of a File in Lightning Component using the base lightning component lightning:fileUpload
?
I tried passing ContentDocumentId
into recordId
parameter, but it returns error on upload.
<lightning:fileUpload name="fileUploader"
label= "Demo Upload"
multiple="true"
recordId="{!v.recordId}" />
onuploadfinished
, that happens after we upload document. What else can we do in APEX regarding this component?