How To Get The Image File Name In An Http Post Request April 01, 2024 Post a Comment I'm pretty new to MVC and I'm trying to get just the file name of the newly selected file. The html code looks like this: Solution 1: you can try this just to extract the file name var fileName = Path.GetFileName(file.FileName); Copyor in other case you can do Baca JugaDisable Javascript Entry Into FormWhatsapp://send?text Cut String From '&' Character Till End?Renderpartial And Viewbagvar name = file.FileName.Split(',')[1].ToString(); Copy Share You may like these postsCreating An Effect Where A Background Image Scrolls At A Different Rate To The Page ContentHow To Displaying An Image With Path Stored In Database?Change Static Navbar To Fixed On Scroll When Bottom Of Hero Section Is ReachedJavascript Listener On Load - Not Loading Post a Comment for "How To Get The Image File Name In An Http Post Request"
Post a Comment for "How To Get The Image File Name In An Http Post Request"