I have a powerapp newform with SharePoint as the datasource. User can upload documents in NewForm which gets stored in document library successfully. Below is the code for the same.
NewForm Submit Button

ForAll(
DataCardValue11.Attachments As file,
'UAT-UploadtoDocLib'.Run(
{
contentBytes: file.Value,
name: file.Name
},
DataCardValue3.Text,
DataCardValue15.Text
)
);
I tried the same in EditForm, where user can upload additional documents. Sample2 and Sample3 are the new docs attached in EditForm. If i delete Sample1.docx here in EditForm, it should get deleted from document library as well. May i know how to achieve this?
