I have been downloading a file into file downloaded path, If i have download same file in the same path file has creating like filename[1],filename[2]....?how to write code for same file name should be there..Advance thanks a lot
If I am not wrong you are doing developing web application. Nothing wrong with your code its just browser behaviour to save files with [1] [2] etc., just to keep all versions of files. There is a chance of file change from time to time. Browser assumes file changed every time and saves a separate file.