This is a migrated thread and some comments may be shown as answers.

Remove specific file in Select event

1 Answer 99 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Jan Erik
Top achievements
Rank 2
Jan Erik asked on 17 Jun 2013, 01:27 PM
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?

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 19 Jun 2013, 03:11 PM
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!
Tags
Upload
Asked by
Jan Erik
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
Share this question
or