Show file preview using JavaScript without saving file (telerik:RadAsyncUpload used)

Viewed 6

I want to display preview of any file which is chosen by user. I want to do it by JavaScript. I'm using "telerik:RadAsyncUpload" control as a file upload control. Below is my code snippet.

<telerik:RadAsyncUpload ID="rauInputFile" title="you can add files here" runat="server"
    MultipleFileSelection="Automatic"
    HideFileInput="True" Skin="Bootstrap" UploadedFilesRendering="BelowFileInput"
    AllowedFileExtensions=".jpg,.jpeg,.png,.mp4,.avi,.wmv,.mov,.mkv,.webm,.jfif,.pdf,.pptx,.ppt,.doc,.docx"
    DisablePlugins="True" OnFileUploaded="ShowComputerImagePreview" OnClientFileUploaded="OnRadAsyncUploadClientAction"
    Localization-Select="Select Media Files"></telerik:RadAsyncUpload>

Your response will be appreciated. Thanks in advance

0 Answers
Related