We have a scenario where we are using the Upload component and need to enforce a total upload size across all files selected for upload (e.g. 25 MB total).
Other than the necessary server-side checks for this, it is very beneficial for users to be informed of this on the front-end, so they do not get surprised by error messages after they try uploading.
There are a few ways that this could be achieved.
1) (Preferred) Add an option to the upload component for the total file size in bytes allowed (default is null/undefined). Show an error/message in the component if this is exceeded. Benefits of this approach:
2) Implement the requested feature to allows us to keep cancelled files in the queue (Ticket #1720671). If this is implemented, then we can check the overall files being uploaded at upload time and cancel the event + display an error manually. Benefits:
Drawbacks:
3) Add the ability to enable/disable the upload button directly in the component. Just setting the "disabled" status to true for the Upload doesn't work as it disables everything and makes it impossible for the user to removing the offending file(s). We can listen to select/remove/clear events, check the overall files being uploaded, display errors and then enable/disable the upload button. Quite a few drawbacks:
At the moment in our environment, we have to do a version of option 3) with workarounds to enable/disable the upload button as there isn't a method to do so directly.
With autoUpload set to false, calling preventDefault() in the upload event handler removes the selected files from the files list after clicking the "Upload" button, which is the intended behavior, as documented in the API page for the upload event.
However, this behavior may be considered unexpected by users, and then they would have to select the files again. The request is to keep the files in the list, unchanged, when the upload is cancelled, so the user can have the option upload them later.
This could be done in one of the following ways:
Would be great if the various pieces of the Upload were more modular so devs didn't have to dig through and copy a bunch of source code into their project just to add a couple of buttons to the control (like validation messages, file text, icons, progressbar, etc). Feels like the control is kind of half-baked.
I think the most common scenario is that developers just want to tweak the template slightly. It seems like kendoUploadFileInfoTemplate attempted to provide this, but doesn't feel like a complete solution.
That is why I want to request a similar template which preserves all the Upload features but allowing slight modifications, or separate components that represent the uploaded file pieces. Currently, I had to dig into the source code to figure out how to reproduce the status messages and size display. If there were components for these elements that would not be necessary.
Add a per-file concurrency option so the Upload component can send multiple chunks of one file simultaneously. The currently available concurrent property only controls whether files upload simultaneously, but does not give the ability to control the concurrency of the chunks in an individual file.
There appears to be a allowedExtensions (Whitelist) but not a disallowedExtensions(Blacklist) link to docs
public uploadRestrictions: FileRestrictions = {
allowedExtensions: ['.jpg', '.png'],
};
There are cases where the drag & drop area is not used.
The purpose of the 'compact' option is to remove the drag & drop area and leave just the 'Select files' button, like defining:
<input type="file" />Change the tabindex of input tag from - 1 to 0. So that enter key press will work with screen reader tools.
Alt+Enter is working but screen reader reading like "To activate press Enter".
To reproduce :
https://www.telerik.com/kendo-angular-ui/components/uploads/upload/keyboard-navigation/
Change the tabindex of input tag from - 1 to 0. So that enter key press will work with screen reader tools.
Alt+Enter is working but screen reader reading like "To activate press Enter".
To reproduce :
https://www.telerik.com/kendo-angular-ui/components/uploads/upload/keyboard-navigation/
At the moment you can specify a template and make a download link yourself. But then you loose the pretty visualization, including upload progress etc. Would be nice if you can specify a download url or download method to trigger when one of the uploaded files is clicked.
I would like to have possibility to provide service extending angular's http service to perform API calls.
Same functionality as jQuery upload at https://demos.telerik.com/kendo-ui/upload/directoryupload
Hi,
Please provide an option that allows to upload a directory by selecting it or by dragging and dropping it similar to the upload directory functionality of the Kendo UI for jQuery Upload:
https://demos.telerik.com/kendo-ui/upload/directoryupload
Thank you
We want to upload file on click of any kendo button or Kendo icon button.
We don't want the drag and drop feature in that. On click of a button, it will ask us to select a file and on click of OK, that file will be auto-update or thumbnail of that file shown besides to that button.
The current upload component does not support chunking or streaming which is important when dealing with large files.
File upload with drag/drop area
I'm interested in the uploadFiles function of the Kendo UI Upload for Angular component, but I don't see any examples anywhere on invoking this. Could someone please share an example on the documentation pages?