hi all
I m trying to upload jpg file. using this code
i m using vs2005
when i run this code i m getting error "The process cannot access the file 'C:\Documents and Settings\admin\Local Settings\Temp\61e30ac62cc343ee8506f0c697834f95' because it is being used by another process.Code:if (IsValid && InputFile1.HasFile) { if (InputFile1.FileContent.Length <=5000000 && InputFile1.FileContent.Length > 0) { try { string filename = InputFile1.FileName; string fileextension = Path.GetExtension(filename); InputFile1.MoveTo(Path.Combine(apppath, "video\\org_video\\" + InputFile1.FileName), MoveToOptions.Overwrite); } catch (Exception ex) { Response.Write(ex.Message ); } } else { Label2 .Text =" the file is above 50 Mb"; } }
"
please help me.




Reply With Quote