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 HttpPostedFileBase.SaveAs() method saving it with the same name as an existing filename on the folder, does HttpPostedfileBase overwrite the file?
Thanks a million!
Yes. Any existing file will be overwritten. (I checked the source)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With