How To Get The Image File Name In An Http Post Request March 21, 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 JugaHow To Choose Displayed Text On Html.dropdownlistforGet Comma-separated String From Checkboxlist Html HelperHow To Produce A 3-column List?var name = file.FileName.Split(',')[1].ToString(); Copy Share You may like these postsBundling Css Even If Using @importHidden File Input Does Not Retain Value On SubmitIn My Mvc 5 Project, I Can't Access Static Html Page When Working On Local IisMvc Dropdownlistfor 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"