is it possible to rename file on server side ?

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.
 
A

AW

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top