Skip to content
Loading
  • Jenith Thakkar
    +1
    Okay got the issue

    1. postedFiles = System.IO.Path.GetFileName(imgphoto).ToString();  
    In this line GetFileName return string where PostedFiles is a object of HttpPostedFileBase so in place of this you have tore it in another string variable

    1. var strFilePath = System.IO.Path.GetFileName(imgphoto);  
    Also it returns a string so no need to convert ToString
    +1