This is a migrated thread and some comments may be shown as answers.

Get uploaded image name

1 Answer 50 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Anjan Nimmana
Top achievements
Rank 1
Anjan Nimmana asked on 20 Dec 2010, 02:47 AM
Hi Team,

I am using RadEditor --> ImageManager to upload the new image. How do i get the uploaded image file name at runtime programmatically using FileUpload event.

   <ImageManager ViewPaths="~/Assets/content/media/images" UploadPaths="~/Assets/content/media/images" />
   <ImageManager ViewPaths="~/Assets/content/media/images" UploadPaths="~/Assets/content/media/images" />
   <ImageManager ViewPaths="~/Assets/content/media/images" UploadPaths="~/Assets/content/media/images" />
<ImageManager ViewPaths="~/Assets/content/media/images" UploadPaths="~/Assets/content/media/images" />

Regards,
Anjan


1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 22 Dec 2010, 04:30 PM
Hi Anjan,

RadEditor is using RadFileExplorer control to provide the file browsing functionality for its dialogs. By design, the events of the RadFileExplorer are not exposed to the RadEditor, however, you can achieve the required functionality by modifying the RadEditor's built-in FileBrowser.ascx dialog and assign a handler to RadFileExplorer's ItemCommand event.

Please review the following articles and live demos for more detailed information on how to implement the above mentioned approach:
Customize Built-in Dialogs
Displaying single upload control in the FileBrowser Upload manager
Server-Side programming

For your convenience I have attached a simple project demonstrating this approach.

Greetings,
Dobromir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Anjan Nimmana
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or