In .net is it possible to rename a file and if that file already exists, overwrite it automatically?
So you want Session.MoveFile to remove target file, if that already exists, correct? It's not possible, unless the server does it for you, what it usually does not.
Why don't you use Session.FileExists and Session.RemoveFiles first?
Thanks for the reply. Basically I want to upload a file name 'MyFile'. Then rename it to 'MyNewFile'. If 'MyNewFile' already exists, then have an option to overwrite the existing 'MyNewFile'.