File upload only when you press exact button

Thread is closed for posting
2 posts, 1 answers
  1. Bram
    Bram  avatar
    4 posts
    Member since:
    Nov 2007

    Posted 26 Aug 2008 Link to this post

    Hi,

    We are using RadUpload component with standard html input control. We have several controls that cause postback to the server on a form. And it is needed to upload file only when you press exact button, like upload button. But now it will try to upload file on every postback. How it can be fixed?

    Example of usage:
    <input type="file" runat="server">
    <telerik:RadProgressManager ID="progressManager" runat="server" />
    <telerik:RadProgressArea ID="progressArea" runat="server">
    </telerik:RadProgressArea>

     Regards,

    Jochem  Nuij

  2. Answer
    Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 28 Aug 2008 Link to this post

    Hello Jochem Nuij,

    This can be easily achieved using RadUpload instead of <input type="file">
    Please check the implementation in this help article:
    Preventing Uploads

    If you want RadUpload to look like the standard input type="file" you can set its EnableFileInputSkinning to false and ControlObjectsVisibility to None.

    Regards,
    Veskoni
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top