RadChat Attachments

1 Answer 30 Views
Chat ToolBar
Randy
Top achievements
Rank 1
Iron
Randy asked on 07 Sep 2021, 11:40 AM | edited on 07 Sep 2021, 11:41 AM

Hi,

How to Get the file path of the file which is uploaded via RadChat ToolBar in ClientSide. I tried with this code and it gives me the only file name.

 

 <telerik:RadChat runat="server" ID="RadChat1" Skin="Default" RenderMode="Lightweight">
            <ClientEvents OnToolClick="OnToolClick"  OnLoad="onLoad"/>
            <ToolbarSettings Toggleable="true" Animation="true">
                <AnimationSettings>
                    <ExpandSettings Duration="500" Effects="expandVertical fadeIn" />
                    <CollapseSettings Duration="500" Effects="expandVertical fadeIn" />
                </AnimationSettings>
                <ButtonsCollection>
                    <telerik:ChatToolbarButton Name="UploadImage" IconClass="t-icon t-i-image" />
                </ButtonsCollection>
            </ToolbarSettings>
        </telerik:RadChat>
        <telerik:RadAsyncUpload runat="server" DropZones=".RadChat" AllowedFileExtensions=".bmp,.jpg,.jpeg,.png,.gif" CssClass="chat-upload" ID="RadAsyncUpload1" OnClientFileSelected="OnFileSelected">
        </telerik:RadAsyncUpload>

 

Reference

https://demos.telerik.com/aspnet-ajax/chat/toolbar/defaultcs.aspx

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 08 Sep 2021, 03:28 PM

Hi Randy,

II am afraid that getting the source path of the selected file cannot using JavaScript. Due to security restrictions of browser you cannot get the actual file path on the disk.

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Chat ToolBar
Asked by
Randy
Top achievements
Rank 1
Iron
Answers by
Vessy
Telerik team
Share this question
or