I have found the solution to this which is working fine.I am using Background worker component to do this.

I had the problem that once the code in Dowork is completed i had the put the code of enabling the timer to execute some code in the timer which did not work at all.It may execute once or does not execute at all.

Right now i am using Dowork() method where i put the upload process.And then i have a timer which will monitor this upload process and then once the upload process is over ,i have a 2nd timer which will do the rest of the process as usual before.

Thanks Shabbir for taking time to reply to my question