ValidatingFile don't fire with 0bytes files

Thread is closed for posting
2 posts, 0 answers
  1. F3M
    F3M avatar
    13 posts
    Member since:
    Dec 2004

    Posted 03 Feb 2010 Link to this post

    Hi,

    I use RadUpload to implement a upload files feature in my application. 
    I found a strange behavior in the component.
    When I try to upload an empty file, the event "ValidatingFile" is not fired and the number of select files is 0.
    How can I solve this problem?

    Thanks.

    Best regards,
    Paulo Silva

  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 10 Feb 2010 Link to this post

    Hi F3M Software,

    RadUpload will put all 0 bytes files in the InvalidFiles collection. You can access them there and process as necessary. As for the ValidatingFile event, it is not firing for "empty" files. Instead they are automatically put in the InvalidFiles collection.

    Greetings,
    Genady Sergeev
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top