
Make sure your document library is connected as a data source in Power Apps:
Use a Gallery control to show the files related to the current item:
Items: Filter(DocumentLibrary, RelatedID = FormItemID)
Replace RelatedID with the column that links the document to the form item.
Use the Attach File control or a custom upload button:
UploadFile or Patch to send the file to SharePoint.Remove(DocumentLibrary, ThisItem)
🏷️ Tag me if you have any further questions or if the issue persists.