Thursday, August 07, 2008

ASP.NET UploadFile control

I am currently working on a project requires uploading the image to the database. It also requires to have a confirmation screen before saving the image to the database. What I found out is the UploadFile control's PostedFile object will get lost every time after the postback. So, there is no file on the confirmation screen to be saved to the database.

Only workaround I found for this issue is to save the PostedFile object to the Session state.

No comments: