We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to get file name on selection of the file .(Asp.net MVC)

Thread ID:





127926 Dec 19,2016 07:15 AM Dec 20,2016 05:47 AM ASP.NET MVC 1
Tags: FileExplorer
Asked On December 19, 2016 07:15 AM

Please see below code for your reference:-

@Html.EJ().FileExplorer("fileExplorer").FileTypes("*.pdf,*.png, *.gif, *.jpg, *.jpeg, *.docx").Path("~/content/images/FileExplorer/").AjaxAction(@Url.Content("/FileExplorer/FileActionDefault")).Width("900px").Height("400px").IsResponsive(true).EnableRTL(false).ShowThumbnail(false)

Thanks for your Help.....

Karthik Ravichandran [Syncfusion]
Replied On December 20, 2016 05:47 AM

Hi Abhijeet, 
Thanks for contacting Syncfusion support. 
We have analyzed your query. You can achieve your requirement (“How to get File name on selection of the file”) by using “Select” event of “FileExplorer” control. Please refer the below code block. 
     @Html.EJ().FileExplorer("fileExplorer").FileTypes("*.png, *.gif, *.jpg, *.jpeg, *.docx") 
        .ClientSideEvents(evt => evt.Select("onfileselect")) 
function onfileselect(args) { 
For your convenience, we have prepared the sample and it can be downloaded from the following location

For more details on FileExplorer “Select” event, please refer the below documentation ink: 

Please let us know if you require any further assistance.
Karthik R 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.