is it possible to rename file on server side ?

  • Thread starter Thread starter THY
  • Start date Start date
T

THY

Hi,

I wonder can we rename a file that on the server ? it is a file that will
upload by user, then later on, the file will need to be rename. Is this
possible ? and if yes, how to do it ?

Thanks.
 
You can easily do this using the System.IO.File class.

Simply make sure that you give the rights to the ASPNET account (or the
account you use if impersonation is enabled) to modify the contents of the
directory where the file is.
 
Back
Top