Remove specific file in Select event

2 posts, 0 answers
  1. Jan Erik
    Jan Erik avatar
    24 posts
    Member since:
    Mar 2011

    Posted 17 Jun 2013 Link to this post

    Hi,

    I'm using the upload control where the user is allowed to upload multiple files at the same time in async mode. 

    On the select event I check if the files are of the correct filetype, if any file is of the wrong type I stop the upload with e.preventDefault().

    However I would like to just remove the file that isn't allowed and continue to upload the rest of the files. Is it possible to remove files from e.files in the select event?

  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 19 Jun 2013 Link to this post

    Hi,

    I'm afraid this is not possible.
    The file list is derived from the input element files collection. This collection is read-only by specification.

    Regards,
    Tsvetomir Tsonev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top