I have a lightning component which has a form. The details provided in the form in turn creates a case record in the back-end. I want to attach multiple drag and drop files along with the details provided in the form. For that I am using the following piece of code
<div>
<lightning:fileUpload label="Attach receipt"
multiple="true"
accept=".pdf, .png, .jpeg, .jpg"
onuploadfinished="{!c.handleUploadFinished}" />
</div>
However, the fileupload input is coming as disabled. I have added the lightning component in a lightning tab and checked there. I have also checked in a stand alone app.
From what I uderstand the reason might be because, I do not have a record Id which will be related to the file. If that is the reason, is there any workaround for this. Also, is there any other way of uploading multiple files?