please use this code in the Page_load :
if(!IsPostBack)
{}
Did you placed the trigger inside <update panel> like
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:PostBackTrigger ControlID="btnUploadFile" />
</Triggers>
<rest of the code>
</asp:UpdatePanel>
Also You can pulled out the FileUpload control from UpdatePanel, the problem is solved.