Last Updated: 19 Sep 2016 05:42 by ADMIN
Created on: 03 Aug 2012 05:47
Category: Upload
Type: Feature Request
Add missing functionality to the Upload control
There appear to be a number of options missing from this control that keep it from being really powerful. For example:
- there does not appear to be a method in which to access the files currently selected, in order to remove one. 
- If you want to limit the file types selected, you have to cancel the entire selection event, which will only piss off end users.
-The only way to show a "remove" button is to have something post back to the server, which makes no sense if AutoUpload is false.
- If you want to clear the list of uploaded items, you have to use jQuery to remove the LI's (WTF?)

My proposed changes:
- Have a Remove button regardless of whether there us a Remove URL set or not. If there is not a Remove URL set, disable the Remove/cancel button while files are being uploaded.
- Add a clear() method to remove all files, uploaded or otherwise.
- Add a getFiles() method to get a list of all in-memory files being managed.
- Add a remove(file) method, so that files that were accidentally selected can be removed in the Select event handler without having to choose between adding a server-side call and pissing off the end user.
- Add a setFileTypes() method that lets you pass in an array of file types to accept. All others will be automatically removed from the collection.
- Make the Drag&Drop capability set the drop zone visibility by default. You can manage that in jQuery without making me add more styles manually.

Thank you for your consideration.
Posted on: 19 Sep 2016 05:42
Released in R3 2016 - some of the features are available as demos here:
Posted on: 15 Feb 2016 15:57
Another missing feature is the ability to nicely handle when the file being uploaded exceeds the maximum transfer size. It should be possible to set a maximum file size on the upload control or to handle the specific error so we can alert the user in a nice friendly way.
Posted on: 11 May 2015 14:11
Hi Robert! Small world.

I am also building with the Kendo UI Upload widget and ran into the same challenges. I think that your suggestions are spot on. I too want a decent java script API for this widget. Tearing <li> elements out of the <ul> is very rudimentary. The flip side though is that the widget is simple. Our Use Case also does not allow for remove from the server but does require remove from the UI before clicking upload.

I would like if there was an API for the Upload function because I want to use my own Upload button or other UI implementation.

Joe Kahl
Posted on: 17 Sep 2014 20:46
The upload control does not appear to have an easy way to "reset" it after the upload is complete.  

I have to manually remove the <li> elements with jQuery which seems like a hack.  But even after doing that, the status in the upper right corner shows as "Done" and continues to show as "Done" even if I select additional files.

I can probably add another hack to clear the "Done" status, but I'd really like a simple method to call that resets/reinitializes the control.  For situations where you may want to upload several sets of files, the current functionality requires jQuery hacks to make it more usable.

Please consider adding this feature.
Posted on: 07 Aug 2013 12:27
100% on this. I was very suprised to see how poor in functionality the upload is considering it's in the toolset for so long. On top of these add methods to programaticly open the browse files window and to programaticly start the upload. These are so basic I would just simply expect them out of the box without the need for hacking.

On top of those some advanced HTML5 enabled features would be cool too. For instance to have image previews before upload out of the box, and image resizing.
Posted on: 27 Jul 2013 23:45
I couldn't agree more with the point about allowing removal of files selected before uploading without having to have a removeUrl setting that hits the server. That's just crazy.

Not being able to reset the widget after uploads are complete (without having to use jquery remove() on specific elements) is also crazy.
Imported User
Posted on: 28 May 2013 02:47
Another missing feature:
You can drag and drop multiple files and the UI shows each file and if it succeeded or failed and you can even retry.  Problem is, there is no way to get the REASON why it failed into the UI.  

For example, suppose for business reason, you do not accept one of their files.  You want to show that as failed and WHY it failed...but the other files they dragged and dropped you accepted fine.  The UI needs to represent that.
Imported User
Posted on: 08 Apr 2013 17:00
It would be very nice to add large file upload with chunk file. same function like plupload.
Posted on: 20 Mar 2013 17:59
The ability to set what file types are allowed would be useful! This is included out of the box on other Telerik upload components in different suites as well so feature parity would be nice. Writing custom methods to check this is possible but of course is more error prone and tedious.