In this post, you will learn, How to upload an image file to a server without using javascript or jquery. The file will be upload using C#. Unique File name is generated with datetime string , you implement your logic for the file name. Given code is applicable in both C# MVC and ASP.Net both.
Name Space
using System.IO;