How to cancal file uplading if the file size is zero?

4 posts, 0 answers
  1. john
    john avatar
    67 posts
    Member since:
    Jan 2012

    Posted 15 Sep 2012 Link to this post

    How to cancal file uplading and alert a message if the uploaded file size is zero?
  2. Plamen
    Admin
    Plamen avatar
    2730 posts

    Posted 18 Sep 2012 Link to this post

    Hello,

     
    This can not be done on the client-side but you can use the OnFileUploaded event and if the e.File.ContentLength is zero to set the "IsValid" property to false

    Hope this will be helpful.

    Greetings,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. john
    john avatar
    67 posts
    Member since:
    Jan 2012

    Posted 18 Sep 2012 Link to this post

    How can I check it in client side instead of server side?
  5. Plamen
    Admin
    Plamen avatar
    2730 posts

    Posted 19 Sep 2012 Link to this post

    Hello,

     
    Unfortunately this can not be checked on the client side.

    All the best,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top