Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7829769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:54:25+00:00 2026-06-02T10:54:25+00:00

I am using ASP.NET MVC Telerik editor in my project , the telerik editor

  • 0

I am using ASP.NET MVC Telerik editor in my project , the telerik editor doesn’t support PDF upload functionality, well it supports image upload, is there a way I can include PDF upload functionality or have anyone tried to do something like that?

My settings:

@(Html.Telerik().Editor().Name(clientId)
/*.Encode(false) weird. Settings "Encode(false)" doesn't work on category & product details page
Now we have to manually decode values*/
.Value(Model)
.Tools(tools => tools
.Custom(settings => settings.HtmlAttributes(new { @class = "t-html", onclick = "viewRichHtmlEditorSource" + random + "(event)", title="Edit HTML" })))
.FileBrowser(browser => browser.Browse("Browse", "ImageBrowser")
    .Thumbnail("Thumbnail", "ImageBrowser")
    .Upload("Upload", "ImageBrowser")
    .DeleteFile("DeleteFile", "ImageBrowser")
    .DeleteDirectory("DeleteDirectory", "ImageBrowser")
    .CreateDirectory("CreateDirectory", "ImageBrowser")))

How to add your suggested functionality within it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T10:54:27+00:00Added an answer on June 2, 2026 at 10:54 am

    Yes it does support pdf, i’m using it for pdf and it works just fine.
    What you have to look out for is the SIZE of the file, you have to check and make sure it’s not over 5MB big

    Here is a sample of what I’m using:

    <div class="editor-field">
        @Html.TextBoxFor(model => model.NewFileName)
        @(Html.Telerik().Upload()
           .Name("attachment")
           .Multiple(false)
           .ClientEvents(events => events.OnSelect("onSelect"))
        )
    </div>
    

    The onSelect script:

    function onSelect(e) {
        if (e.files[0].size > 5000000) {
            alert('The file size is too large for upload');
            e.preventDefault();
            return false;
        }
        // Array with information about the uploaded files
        var files = e.files;
        var ext = $('#attachment').val().split('.').pop().toLowerCase();
        if ($.inArray(ext, ['pdf']) == -1) {
            alert('This type of file is restricted from being uploaded due to security reasons');
            e.preventDefault();
        } else {
            $("#NewFileName").val(files[0].name);
        }
        return false;
    }
    

    The Controller action must receive the attachement in the signature like so:

    public ActionResult EditFile(HttpPostedFileBase attachment) {
    ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're using the Telerik Rad Controls for ASP.Net Ajax on an ASP.Net MVC project.
I have been using telerik extensions for an asp.net mvc project, more specifically the
I'm using the Telerik Extensions for ASP.NET MVC in an MVC3 project. I'm finding
Using a Telerik Grid with ASP.NET MVC 3 Razor engine. When a user selects
I am using ASP.NET MVC architecture.I have a telerik window on a button click,
I am using Telerik asp.net mvc extensions. I have an issue that happens only
I'm using the Telerik Extensions for ASP.NET MVC 3 and I'm having a problem
I am using the latest version Telerik MVC controls . I am using ASP.NET
Currently using Telerik ASP .NET MVC Controls version 2011.2.712 Hello all, I am trying
I am using a Telerik MVC Batch editable grid with ASP.Net MVC3 Razor views.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.