I\'ve got an asp.net mvc application that uploads a file and stores them in one of the directories where the website is located.
My question is... When you execute Http
Yes. Any existing file will be overwritten. (I checked the source)
HttpPostedFileBase is just an abstract base class - what SaveAs does depends on the implementation. However, it's clearly meant to abstract HttpPostedFile, and that will overwrite any files at the target location - if it can (i.e. has the appropriate permissions).