How To Get The Image File Name In An Http Post Request January 31, 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 JugaWhy Is Mvc Actionlink Not Rendering Correctly?Enabling & Disabling A Textbox In Razor View (asp.net Mvc 3)Inline Helpers And Page Output - How?var name = file.FileName.Split(',')[1].ToString(); Copy Share You may like these postsNavigate From Html Page To Mvc ViewJquery Ui Sortable() Method Not Supported Error@html.dropdownlistfor() Always Displays Blank Even With A List Item SelectedHtml Select List: Why Would Onchange Be Called Twice? 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"