Fix ulpoad bug when a same filename already exist

This fix the cifs upload problem when a same filename already existing by
adding an increment on the new file name. Before that the upload success
returned false and entered in condition to delete the file with same
filename, so it removed the file with the same name already in the
cifs space.