Hi All,
I have a powerapps for leave req submission, previously it works just fine. But now the attachment section is not linking to the sharepoint. So every time someone submit the form, the attachment is not send eventhough the person already upload it. And it always show unsaved, is there any correlation? Any kind of help is appreciated, thanks!

I did not change any formula on my submit button its always been like this
Patch(
ListLeaveRequestbyUser,
Defaults(ListLeaveRequestbyUser),
{'Leave Type':Gallery2.Selected.'Leave Type'.Value},
{'From Date':StartDate.SelectedDate},
{'To Date':EndDate.SelectedDate},
{'Number of Leaves Day':daysdiff+1},
{'Name (Title)':DataCardValue1.Text},
{'Employee No.':DataCardValue4.Text},
{Department:DataCardValue6.Selected},
{Company:DataCardValue7.Selected},
{Position:DataCardValue8.Text},
{Attachments:DataCardValue13},
{'Name Manager':DataCardValue5.Selected},
{LeaveID:{'@odata.type':"#Microsoft.Azure.Connectors.Sharepoint.SPlistExpandedReference", Id:Gallery2.Selected.ID, Value:Gallery2.Selected.Title}});
Notify("Leave Applied Successfully",NotificationType.Success);
Navigate('My Leave Request');