I want to store each individual image into it’s own directory which will be created on upload action with following structure
/server_img_path/<year>/<month>/<day>/<hour><minutes><seconds><img_id>.png
Now I have following which works but with upload storage of one directory
var fn = Server.MapPath("~/Content/img/" + name + ".png");
img.Save(fn, System.Drawing.Imaging.ImageFormat.Png);
Thanks
Try This for saving images, but this will not store each individual image into it’s own directory, because by this code you will be able to create a directory for a day. so all images for a day will go in that folder.